1error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its trait bounds were not satisfied
2 --> $DIR/source-struct-not-error.rs:9:5
3  |
44 | struct NotError;
5  | ----------------
6  | |
7  | method `as_dyn_error` not found for this
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`
17