]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/derives/derives-span-Debug-enum.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / derives / derives-span-Debug-enum.stderr
index 99e618b40ece2c636ad18969859d665eee388de2..4ffb75935af9b996146a5a3e92a6719a31818a3e 100644 (file)
@@ -1,13 +1,14 @@
 error[E0277]: `Error` doesn't implement `Debug`
   --> $DIR/derives-span-Debug-enum.rs:9:6
    |
+LL | #[derive(Debug)]
+   |          ----- in this derive macro expansion
+...
 LL |      Error
    |      ^^^^^ `Error` cannot be formatted using `{:?}`
    |
    = help: the trait `Debug` is not implemented for `Error`
-   = note: add `#[derive(Debug)]` or manually implement `Debug`
-   = note: required because of the requirements on the impl of `Debug` for `&Error`
-   = note: required for the cast to the object type `dyn Debug`
+   = note: add `#[derive(Debug)]` to `Error` or manually `impl Debug for Error`
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: aborting due to previous error