Debian Codegraph @

.cargo/vendor/thiserror-1.0.59/tests/ui/no-display.stderr

raw
1 error[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 |
4 4 | struct NoDisplay;
5 | ---------------- doesn't satisfy `NoDisplay: std::fmt::Display`
6 ...
7 7 | #[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: AsDisplay<'_>`
13 note: the trait `std::fmt::Display` must be implemented
14 --> $RUST/core/src/fmt/mod.rs
15 |
16 | pub trait Display {
17 | ^^^^^^^^^^^^^^^^^
18 = help: items from traits can only be used if the trait is implemented and in scope
19 = note: the following trait defines an item `as_display`, perhaps you need to implement it:
20 candidate #1: `AsDisplay`