summaryrefslogtreecommitdiffstats
path: root/vendor/anyhow/tests/ui/no-impl.stderr
blob: 7c5ec503f7125833357c3f3eedf9188bf6d4859d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not satisfied
   --> tests/ui/no-impl.rs:7:13
    |
4   | struct Error;
    | ------------
    | |
    | doesn't satisfy `Error: Into<anyhow::Error>`
    | doesn't satisfy `Error: anyhow::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::kind::TraitKind`
            `Error: std::fmt::Display`
            which is required by `&Error: anyhow::kind::AdhocKind`
            `&Error: Into<anyhow::Error>`
            which is required by `&Error: anyhow::kind::TraitKind`
note: the following traits must be implemented
   --> $RUST/core/src/convert/mod.rs
    |
    | pub trait Into<T>: Sized {
    | ^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: $RUST/core/src/fmt/mod.rs
    |
    | pub trait Display {
    | ^^^^^^^^^^^^^^^^^
    = note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info)