1 2 3 4 5 6 7 8 9 10 11 12 13
mod fmt; mod strfmt; mod test_trait; use super::{FmtError}; #[test] fn test_error() { // just make sure this compiles mostly let err = FmtError::Invalid("fmt error".to_string()); let v = err.to_string(); println!("{}", v); }