Home
last modified time | relevance | path

Searched refs:TestError (Results 1 – 2 of 2) sorted by relevance

/wasmtime-44.0.1/crates/core/tests/
H A Dtests.rs21 struct TestError(u32); struct
23 impl fmt::Display for TestError { implementation
176 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 …]
/wasmtime-44.0.1/crates/core/src/error/
H A Derror.rs1972 struct TestError; struct
1974 impl fmt::Display for TestError { implementation
1980 impl core::error::Error for TestError {} implementation
1997 type Concrete = ConcreteError<TestError>; in dyn_error_and_concrete_error_layouts_are_compatible()