()
| 269 | |
| 270 | #[test] |
| 271 | fn format_err_macro_core_error() { |
| 272 | let error = TestError(42); |
| 273 | let error = format_err!(error); |
| 274 | assert!(error.is::<TestError>()); |
| 275 | assert_eq!(error.to_string(), "TestError(42)"); |
| 276 | } |
| 277 | |
| 278 | #[test] |
| 279 | fn format_err_macro_core_error_chain() { |