File: bitfield_disable_debug.stderr

package info (click to toggle)
rust-bitfields 0.12.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 400 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 708 bytes parent folder | download
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)]
   |