22 lines
990 B
Plaintext
22 lines
990 B
Plaintext
error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not satisfied
|
|
--> $DIR/no-impl.rs:7:13
|
|
|
|
|
4 | struct Error;
|
|
| -------------
|
|
| |
|
|
| doesn't satisfy `Error: Into<anyhow::Error>`
|
|
| doesn't satisfy `Error: anyhow::private::kind::TraitKind`
|
|
| doesn't satisfy `Error: std::fmt::Display`
|
|
...
|
|
7 | let _ = anyhow!(Error);
|
|
| ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds
|
|
|
|
|
= note: the following trait bounds were not satisfied:
|
|
`Error: Into<anyhow::Error>`
|
|
which is required by `Error: anyhow::private::kind::TraitKind`
|
|
`Error: std::fmt::Display`
|
|
which is required by `&Error: anyhow::private::kind::AdhocKind`
|
|
`&Error: Into<anyhow::Error>`
|
|
which is required by `&Error: anyhow::private::kind::TraitKind`
|
|
= note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info)
|