fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB30 linesraw
1error[E0277]: `MyError` doesn't implement `std::fmt::Display`
2 --> $DIR/issue-71363.rs:4:28
3  |
44 | 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
9note: required by a bound in `std::error::Error`
10 --> $SRC_DIR/core/src/error.rs:LL:COL
11
12error[E0277]: `MyError` doesn't implement `Debug`
13 --> $DIR/issue-71363.rs:4:28
14  |
154 | impl std::error::Error for MyError {}
16  |                            ^^^^^^^ `MyError` cannot be formatted using `{:?}`
17  |
18  = help: the trait `Debug` is not implemented for `MyError`
19  = note: add `#[derive(Debug)]` to `MyError` or manually `impl Debug for MyError`
20note: required by a bound in `std::error::Error`
21 --> $SRC_DIR/core/src/error.rs:LL:COL
22help: consider annotating `MyError` with `#[derive(Debug)]`
23  |
243 + #[derive(Debug)]
254 | struct MyError;
26  |
27
28error: aborting due to 2 previous errors
29
30For more information about this error, try `rustc --explain E0277`.