1error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its trait bounds were not satisfied 2 --> tests/ui/source-struct-not-error.rs:9:5 3 | 44 | struct NotError; 5 | --------------- 6 | | 7 | method `as_dyn_error` not found for this struct 8 | doesn't satisfy `NotError: AsDynError<'_>` 9 | doesn't satisfy `NotError: std::error::Error` 10... 119 | source: NotError, 12 | ^^^^^^ method cannot be called on `NotError` due to unsatisfied trait bounds 13 | 14 = note: the following trait bounds were not satisfied: 15 `NotError: std::error::Error` 16 which is required by `NotError: AsDynError<'_>` 17note: the trait `std::error::Error` must be implemented 18 --> $RUST/core/src/error.rs 19 | 20 | pub trait Error: Debug + Display { 21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 22