File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,13 @@ error[E0277]: `MyError` doesn't implement `std::fmt::Display`
443 | #[derive(Error, Debug)]
55 | ----- in this derive macro expansion
664 | pub enum MyError {
7- | ^^^^^^^ the trait `std::fmt::Display` is not implemented for `MyError`
7+ | ^^^^^^^ unsatisfied trait bound
88 |
9+ help: the trait `std::fmt::Display` is not implemented for `MyError`
10+ --> tests/ui/missing-display.rs:4:1
11+ |
12+ 4 | pub enum MyError {
13+ | ^^^^^^^^^^^^^^^^
914note: required by a bound in `std::error::Error`
1015 --> $RUST/core/src/error.rs
1116 |
Original file line number Diff line number Diff line change @@ -25,8 +25,13 @@ error[E0277]: the trait bound `NoDisplay: Octal` is not satisfied
252512 | #[derive(Error, Debug)]
2626 | ----- in this derive macro expansion
272713 | #[error("thread: {thread:o}")]
28- | ^^^^^^^^^^^^^^^^^^^^ the trait `Octal` is not implemented for `NoDisplay`
28+ | ^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
2929 |
30+ help: the trait `Octal` is not implemented for `NoDisplay`
31+ --> tests/ui/no-display.rs:4:1
32+ |
33+ 4 | struct NoDisplay;
34+ | ^^^^^^^^^^^^^^^^
3035 = help: the following other types implement trait `Octal`:
3136 &T
3237 &mut T
You can’t perform that action at this time.
0 commit comments