File: bitfield_disable_from_bits.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 (17 lines) | stat: -rw-r--r-- 933 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0599]: no function or associated item named `from_bits` found for struct `Bitfield` in the current scope
  --> tests/compile_error_cases/bitfield_disable_from_bits.rs:12:30
   |
3  | #[bitfield(u64, from_bits = false)]
   | ----------------------------------- function or associated item `from_bits` not found for this struct
...
12 |     let bitfield = Bitfield::from_bits(0);
   |                              ^^^^^^^^^ function or associated item not found in `Bitfield`
   |
note: if you're trying to build a new `Bitfield` consider using one of the following associated functions:
      Bitfield::new
      Bitfield::new_without_defaults
  --> tests/compile_error_cases/bitfield_disable_from_bits.rs:3:1
   |
3  | #[bitfield(u64, from_bits = false)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the attribute macro `bitfield` (in Nightly builds, run with -Z macro-backtrace for more info)