1 error[E0599]: no method named `as_dyn_error` found for struct `std::string::String` in the current scope
2 --> $DIR/source-struct-not-error.rs:6:5
5 | ^^^^^^ method not found in `std::string::String`
7 = note: the method `as_dyn_error` exists but the following trait bounds were not satisfied:
8 `std::string::String: std::error::Error`
9 which is required by `std::string::String: thiserror::aserror::AsDynError`
10 `str: std::marker::Sized`
11 which is required by `str: thiserror::aserror::AsDynError`
12 `str: std::error::Error`
13 which is required by `str: thiserror::aserror::AsDynError`