]> git.proxmox.com Git - rustc.git/blame - vendor/thiserror/tests/ui/no-display.stderr
New upstream version 1.59.0+dfsg1
[rustc.git] / vendor / thiserror / tests / ui / no-display.stderr
CommitLineData
a2a8927a
XL
1error[E0599]: the method `as_display` exists for reference `&NoDisplay`, but its trait bounds were not satisfied
2 --> tests/ui/no-display.rs:7:9
3 |
44 | struct NoDisplay;
5 | ----------------- doesn't satisfy `NoDisplay: std::fmt::Display`
6...
77 | #[error("thread: {thread}")]
8 | ^^^^^^^^^^^^^^^^^^ method cannot be called on `&NoDisplay` due to unsatisfied trait bounds
9 |
10 = note: the following trait bounds were not satisfied:
11 `NoDisplay: std::fmt::Display`
12 which is required by `&NoDisplay: DisplayAsDisplay`
13note: the following trait must be implemented
14 --> $RUST/core/src/fmt/mod.rs
15 |
16 | / pub trait Display {
17 | | /// Formats the value using the given formatter.
18 | | ///
19 | | /// # Examples
20... |
21 | | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
22 | | }
23 | |_^