]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / rfc-2361-dbg-macro / dbg-macro-requires-debug.stderr
1 error[E0277]: `NotDebug` doesn't implement `Debug`
2   --> $DIR/dbg-macro-requires-debug.rs:6:23
3    |
4 LL |     let _: NotDebug = dbg!(NotDebug);
5    |                       ^^^^^^^^^^^^^^ `NotDebug` cannot be formatted using `{:?}`
6    |
7    = help: the trait `Debug` is not implemented for `NotDebug`
8    = note: add `#[derive(Debug)]` to `NotDebug` or manually `impl Debug for NotDebug`
9    = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
10 help: consider annotating `NotDebug` with `#[derive(Debug)]`
11    |
12 LL | #[derive(Debug)]
13    |
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.