thiserror 1.0.17

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