]> git.proxmox.com Git - rustc.git/blob - vendor/anyhow/tests/ui/no-impl.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / anyhow / tests / ui / no-impl.stderr
1 error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not satisfied
2 --> tests/ui/no-impl.rs:7:13
3 |
4 4 | struct Error;
5 | -------------
6 | |
7 | doesn't satisfy `Error: Into<anyhow::Error>`
8 | doesn't satisfy `Error: anyhow::private::kind::TraitKind`
9 | doesn't satisfy `Error: std::fmt::Display`
10 ...
11 7 | let _ = anyhow!(Error);
12 | ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds
13 |
14 = note: the following trait bounds were not satisfied:
15 `Error: Into<anyhow::Error>`
16 which is required by `Error: anyhow::private::kind::TraitKind`
17 `Error: std::fmt::Display`
18 which is required by `&Error: anyhow::private::kind::AdhocKind`
19 `&Error: Into<anyhow::Error>`
20 which is required by `&Error: anyhow::private::kind::TraitKind`
21 note: the following traits must be implemented
22 --> $RUST/core/src/convert/mod.rs
23 |
24 | / pub trait Into<T>: Sized {
25 | | /// Converts this type into the (usually inferred) input type.
26 | | #[must_use]
27 | | #[stable(feature = "rust1", since = "1.0.0")]
28 | | fn into(self) -> T;
29 | | }
30 | |_^
31 |
32 ::: $RUST/core/src/fmt/mod.rs
33 |
34 | / pub trait Display {
35 | | /// Formats the value using the given formatter.
36 | | ///
37 | | /// # Examples
38 ... |
39 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
40 | | }
41 | |_^
42 = note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info)