mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-05 05:47:39 +03:00
This eliminates potential flakiness if parallel rustc were to compile thw two impls in different threads, affecting the order in which the two errors are emitted.
10 lines
515 B
Text
10 lines
515 B
Text
error[E0599]: no method named `as_dyn_error` found for type `&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 : thiserror::aserror::AsDynError`
|
|
`std::string::String : thiserror::aserror::AsDynError`
|
|
`str : thiserror::aserror::AsDynError`
|