mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-02 15:08:39 +00:00
14 lines
702 B
Plaintext
14 lines
702 B
Plaintext
error[E0599]: no method named `as_dyn_error` found for struct `std::string::String` in the current scope
|
|
--> $DIR/source-struct-not-error.rs:6:5
|
|
|
|
|
6 | 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`
|
|
`str: std::marker::Sized`
|
|
which is required by `str: thiserror::aserror::AsDynError`
|
|
`str: std::error::Error`
|
|
which is required by `str: thiserror::aserror::AsDynError`
|