dimas_config/
error.rs

1// Copyright © 2024 Stephan Kunz
2
3//! `dimas-time` errors
4
5#[doc(hidden)]
6extern crate alloc;
7
8#[cfg(feature = "std")]
9extern crate std;
10
11use alloc::string::String;
12use thiserror::Error;
13
14// region:		--- Error
15/// `dimas-time` error type.
16#[derive(Error, Debug)]
17pub enum Error {
18	/// ivalid #include directive
19	#[error("invalid '#include' at {0} in {0}")]
20	InvalidInclude(String),
21}
22// region:		--- Error
23
24#[cfg(test)]
25mod tests {
26	use super::*;
27
28	// check, that the auto traits are available
29	const fn is_normal<T: Sized + Send + Sync>() {}
30
31	#[test]
32	const fn normal_types() {
33		is_normal::<Error>();
34	}
35}