1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
error[E0277]: `Bitfield` doesn't implement `Debug`
--> tests/compile_error_cases/bitfield_disable_debug.rs:13:22
|
13 | println!("{:?}", bitfield);
| ^^^^^^^^ `Bitfield` cannot be formatted using `{:?}`
|
= help: the trait `Debug` is not implemented for `Bitfield`
= note: add `#[derive(Debug)]` to `Bitfield` or manually `impl Debug for Bitfield`
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `Bitfield` with `#[derive(Debug)]`
|
3 + #[derive(Debug)]
4 | #[bitfield(u64, debug = false)]
|
|