Home
last modified time | relevance | path

Searched refs:as_dyn_error (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/thiserror/src/
Daserror.rs4 fn as_dyn_error(&self) -> &(dyn Error + 'static); in as_dyn_error() method
9 fn as_dyn_error(&self) -> &(dyn Error + 'static) { in as_dyn_error() method
16 fn as_dyn_error(&self) -> &(dyn Error + 'static) { in as_dyn_error() method
23 fn as_dyn_error(&self) -> &(dyn Error + 'static) { in as_dyn_error() method
30 fn as_dyn_error(&self) -> &(dyn Error + 'static) { in as_dyn_error() method
/external/rust/crates/thiserror-impl/src/
Dexpand.rs23 std::error::Error::source(self.#only_field.as_dyn_error()) in impl_struct()
32 let dyn_error = quote_spanned!(source.span()=> self.#source #asref.as_dyn_error()); in impl_struct()
54 self.#source.as_ref().and_then(|source| source.as_dyn_error().backtrace()) in impl_struct()
58 self.#source.as_dyn_error().backtrace() in impl_struct()
163 let source = quote!(std::error::Error::source(transparent.as_dyn_error())); in impl_enum()
175 let dyn_error = quote_spanned!(source.span()=> #varsource #asref.as_dyn_error()); in impl_enum()
210 #varsource.as_ref().and_then(|source| source.as_dyn_error().backtrace()) in impl_enum()
214 #varsource.as_dyn_error().backtrace() in impl_enum()
/external/rust/crates/thiserror/tests/ui/
Dsource-struct-not-error.stderr1 error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its trait bounds were not…
7 | method `as_dyn_error` not found for this
Dsource-enum-not-error.stderr1 error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but its trait bounds were…