| 1 | mod floatrust-analyzer cargo strfmt 0.2.4 tests/float/; |
| 2 | mod fmtrust-analyzer cargo strfmt 0.2.4 tests/fmt/; |
| 3 | mod keyrust-analyzer cargo strfmt 0.2.4 tests/key/; |
| 4 | mod legacyrust-analyzer cargo strfmt 0.2.4 tests/legacy/; |
| 5 | mod macrosrust-analyzer cargo strfmt 0.2.4 tests/macros/; |
| 6 | mod strfmtrust-analyzer cargo strfmt 0.2.4 tests/strfmt/; |
| 7 | mod test_traitrust-analyzer cargo strfmt 0.2.4 tests/test_trait/; |
| 8 | |
| 9 | use superrust-analyzer cargo strfmt 0.2.4 crate/::FmtErrorrust-analyzer cargo strfmt 0.2.4 types/FmtError#; |
| 10 | |
| 11 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 12 | fn test_errorrust-analyzer cargo strfmt 0.2.4 tests/test_error().() { |
| 13 | // just make sure this compiles mostly |
| 14 | let err = FmtErrorrust-analyzer cargo strfmt 0.2.4 types/FmtError#::Invalidrust-analyzer cargo strfmt 0.2.4 types/FmtError#Invalid#("fmt error".to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()); |
| 15 | let v = err.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(); |
| 16 | printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", v); |
| 17 | } |