]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-71363.stderr
Make -Zsimulate-remapped-rust-src-base reproducible on CI
[rust.git] / src / test / ui / span / issue-71363.stderr
1 error[E0277]: `MyError` doesn't implement `std::fmt::Display`
2  --> $DIR/issue-71363.rs:4:6
3   |
4 4 | 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 note: required by a bound in `std::error::Error`
10  --> $SRC_DIR/core/src/error.rs:LL:COL
11   |
12   = note: required by this bound in `std::error::Error`
13
14 error[E0277]: `MyError` doesn't implement `Debug`
15  --> $DIR/issue-71363.rs:4:6
16   |
17 4 | impl std::error::Error for MyError {}
18   |      ^^^^^^^^^^^^^^^^^ `MyError` cannot be formatted using `{:?}`
19   |
20   = help: the trait `Debug` is not implemented for `MyError`
21   = note: add `#[derive(Debug)]` to `MyError` or manually `impl Debug for MyError`
22 note: required by a bound in `std::error::Error`
23  --> $SRC_DIR/core/src/error.rs:LL:COL
24   |
25   = note: required by this bound in `std::error::Error`
26 help: consider annotating `MyError` with `#[derive(Debug)]`
27   |
28 3 | #[derive(Debug)]
29   |
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0277`.