| 1 |
error: expected attribute arguments in parentheses: #[error(...)] |
| 2 |
--> tests/ui/fallback-impl-with-display.rs:5:3 |
| 3 |
| |
| 4 |
5 | #[error] |
| 5 |
| ^^^^^ |
| 6 |
|
| 7 |
error[E0119]: conflicting implementations of trait `std::fmt::Display` for type `MyError` |
| 8 |
--> tests/ui/fallback-impl-with-display.rs:4:10 |
| 9 |
| |
| 10 |
4 | #[derive(Error, Debug)] |
| 11 |
| ^^^^^ conflicting implementation for `MyError` |
| 12 |
... |
| 13 |
8 | impl Display for MyError { |
| 14 |
| ------------------------ first implementation here |
| 15 |
| |
| 16 |
= note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) |