1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
mod float; mod fmt; mod key; mod legacy; mod macros; 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); }