| 1 |
error[E0277]: `MyError` doesn't implement `std::fmt::Display` |
| 2 |
--> tests/ui/missing-display.rs:4:10 |
| 3 |
| |
| 4 |
3 | #[derive(Error, Debug)] |
| 5 |
| ----- in this derive macro expansion |
| 6 |
4 | pub enum MyError { |
| 7 |
| ^^^^^^^ unsatisfied trait bound |
| 8 |
| |
| 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 |
| ^^^^^^^^^^^^^^^^ |
| 14 |
note: required by a bound in `std::error::Error` |
| 15 |
--> $RUST/core/src/error.rs |
| 16 |
| |
| 17 |
| pub trait Error: Debug + Display { |
| 18 |
| ^^^^^^^ required by this bound in `Error` |
| 19 |
= note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) |