File: bitfield_disable_debug.stderr

package info (click to toggle)
rust-bitfields 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 496 kB
  • sloc: makefile: 2
file content (16 lines) | stat: -rw-r--r-- 823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 `{:?}` because it doesn't implement `Debug`
   |               |
   |               required by this formatting parameter
   |
   = 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)]
   |