aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/no-display.stderr
blob: b1a0c495f19b81d605b368434e5bb154a4848ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0599]: no method named `as_display` found for reference `&NoDisplay` in the current scope
 --> $DIR/no-display.rs:7:9
  |
4 | struct NoDisplay;
  | ----------------- doesn't satisfy `NoDisplay: std::fmt::Display`
...
7 | #[error("thread: {thread}")]
  |         ^^^^^^^^^^^^^^^^^^ method not found in `&NoDisplay`
  |
  = note: the method `as_display` exists but the following trait bounds were not satisfied:
          `NoDisplay: std::fmt::Display`
          which is required by `&NoDisplay: DisplayAsDisplay`