|
1 | 1 | error[E0277]: `MyError` doesn't implement `std::fmt::Display`
|
2 |
| - --> $DIR/issue-71363.rs:6:6 |
3 |
| - | |
4 |
| -6 | impl std::error::Error for MyError {} |
5 |
| - | ^^^^^^^^^^^^^^^^^ `MyError` cannot be formatted with the default formatter |
6 |
| - | |
7 |
| - = help: the trait `std::fmt::Display` is not implemented for `MyError` |
8 |
| - = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead |
| 2 | + --> $DIR/issue-71363.rs:7:6 |
| 3 | + | |
| 4 | +LL | impl std::error::Error for MyError {} |
| 5 | + | ^^^^^^^^^^^^^^^^^ `MyError` cannot be formatted with the default formatter |
| 6 | + | |
| 7 | + = help: the trait `std::fmt::Display` is not implemented for `MyError` |
| 8 | + = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead |
9 | 9 | note: required by a bound in `std::error::Error`
|
| 10 | + --> $SRC_DIR/std/src/error.rs:LL:COL |
| 11 | + | |
| 12 | +LL | pub trait Error: Debug + Display { |
| 13 | + | ^^^^^^^ required by this bound in `std::error::Error` |
10 | 14 |
|
11 | 15 | error[E0277]: `MyError` doesn't implement `Debug`
|
12 |
| - --> $DIR/issue-71363.rs:6:6 |
13 |
| - | |
14 |
| -6 | impl std::error::Error for MyError {} |
15 |
| - | ^^^^^^^^^^^^^^^^^ `MyError` cannot be formatted using `{:?}` |
16 |
| - | |
17 |
| - = help: the trait `Debug` is not implemented for `MyError` |
18 |
| - = note: add `#[derive(Debug)]` to `MyError` or manually `impl Debug for MyError` |
| 16 | + --> $DIR/issue-71363.rs:7:6 |
| 17 | + | |
| 18 | +LL | impl std::error::Error for MyError {} |
| 19 | + | ^^^^^^^^^^^^^^^^^ `MyError` cannot be formatted using `{:?}` |
| 20 | + | |
| 21 | + = help: the trait `Debug` is not implemented for `MyError` |
| 22 | + = note: add `#[derive(Debug)]` to `MyError` or manually `impl Debug for MyError` |
19 | 23 | note: required by a bound in `std::error::Error`
|
| 24 | + --> $SRC_DIR/std/src/error.rs:LL:COL |
| 25 | + | |
| 26 | +LL | pub trait Error: Debug + Display { |
| 27 | + | ^^^^^ required by this bound in `std::error::Error` |
20 | 28 | help: consider annotating `MyError` with `#[derive(Debug)]`
|
21 |
| - | |
22 |
| -5 | #[derive(Debug)] |
23 |
| - | |
| 29 | + | |
| 30 | +LL | #[derive(Debug)] |
| 31 | + | |
24 | 32 |
|
25 | 33 | error: aborting due to 2 previous errors
|
26 | 34 |
|
|
0 commit comments