]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / rfc-2361-dbg-macro / dbg-macro-requires-debug.stderr
index 6d150b84dd81ecec1d1103c7b4ca120c7aa04a9e..ea1f66d78a3786f87239963120858c3b0d23b613 100644 (file)
@@ -5,10 +5,12 @@ LL |     let _: NotDebug = dbg!(NotDebug);
    |                       ^^^^^^^^^^^^^^ `NotDebug` cannot be formatted using `{:?}`
    |
    = help: the trait `Debug` is not implemented for `NotDebug`
-   = note: add `#[derive(Debug)]` or manually implement `Debug`
-   = note: required because of the requirements on the impl of `Debug` for `&NotDebug`
-   = note: required by `std::fmt::Debug::fmt`
-   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
+   = note: add `#[derive(Debug)]` to `NotDebug` or manually `impl Debug for NotDebug`
+   = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
+help: consider annotating `NotDebug` with `#[derive(Debug)]`
+   |
+LL | #[derive(Debug)]
+   |
 
 error: aborting due to previous error