Searched refs:TestError (Results 1 – 2 of 2) sorted by relevance
21 struct TestError(u32); struct23 impl fmt::Display for TestError { implementation176 assert!(!e.is::<TestError>()); in is()182 assert!(e.is::<TestError>()); in is()189 assert!(e.is::<TestError>()); in is()194 assert!(e.is::<TestError>()); in is()201 assert!(!e.is::<TestError>()); in is()272 let error = TestError(42); in format_err_macro_core_error()336 bail!(TestError(13)) in bail_macro()457 let error = Error::new(TestError(42)).context(TestError(36)); in downcast()[all …]
1972 struct TestError; struct1974 impl fmt::Display for TestError { implementation1980 impl core::error::Error for TestError {} implementation1997 type Concrete = ConcreteError<TestError>; in dyn_error_and_concrete_error_layouts_are_compatible()