1error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but its trait bounds were not satisfied 2 --> tests/ui/source-enum-unnamed-field-not-error.rs:9:12 3 | 44 | pub struct NotError; 5 | ------------------- doesn't satisfy `NotError: AsDynError<'_>` or `NotError: std::error::Error` 6... 79 | Broken(#[source] NotError), 8 | ^^^^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds 9 | 10 = note: the following trait bounds were not satisfied: 11 `NotError: std::error::Error` 12 which is required by `NotError: AsDynError<'_>` 13 `&NotError: std::error::Error` 14 which is required by `&NotError: AsDynError<'_>` 15note: the trait `std::error::Error` must be implemented 16 --> $RUST/core/src/error.rs 17 | 18 | pub trait Error: Debug + Display { 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20 = help: items from traits can only be used if the trait is implemented and in scope 21 = note: the following trait defines an item `as_dyn_error`, perhaps you need to implement it: 22 candidate #1: `AsDynError` 23