1
Fork 0
rust/src/test/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr

16 lines
844 B
Text
Raw Normal View History

2018-09-18 04:28:17 +02:00
error[E0277]: `NotDebug` doesn't implement `std::fmt::Debug`
2018-12-01 02:54:09 +01:00
--> $DIR/dbg-macro-requires-debug.rs:6:23
2018-09-18 04:28:17 +02:00
|
2018-11-27 10:56:36 +01:00
LL | let _: NotDebug = dbg!(NotDebug); //~ ERROR `NotDebug` doesn't implement `std::fmt::Debug`
2018-09-18 04:28:17 +02:00
| ^^^^^^^^^^^^^^ `NotDebug` cannot be formatted using `{:?}`
|
= help: the trait `std::fmt::Debug` is not implemented for `NotDebug`
= note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&NotDebug`
= note: required by `std::fmt::Debug::fmt`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.