]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/derives-span-Debug-enum-struct-variant.stderr
Rollup merge of #59847 - Kampfkarren:try-block-catch, r=estebank
[rust.git] / src / test / ui / derives / derives-span-Debug-enum-struct-variant.stderr
1 error[E0277]: `Error` doesn't implement `std::fmt::Debug`
2   --> $DIR/derives-span-Debug-enum-struct-variant.rs:9:6
3    |
4 LL |      x: Error
5    |      ^^^^^^^^ `Error` cannot be formatted using `{:?}`
6    |
7    = help: the trait `std::fmt::Debug` is not implemented for `Error`
8    = note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
9    = note: required because of the requirements on the impl of `std::fmt::Debug` for `&Error`
10    = note: required for the cast to the object type `dyn std::fmt::Debug`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.