File: bitfield_disable_into_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 (15 lines) | stat: -rw-r--r-- 757 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0599]: no method named `into_bits` found for struct `Bitfield` in the current scope
  --> tests/compile_error_cases/bitfield_disable_into_bits.rs:14:29
   |
3  | #[bitfield(u64, into_bits = false)]
   | ----------------------------------- method `into_bits` not found for this struct
...
14 |     let val: u64 = bitfield.into_bits();
   |                             ^^^^^^^^^
   |
help: there is a method `set_bits` with a similar name, but with different arguments
  --> tests/compile_error_cases/bitfield_disable_into_bits.rs:3:1
   |
3  | #[bitfield(u64, into_bits = false)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the attribute macro `bitfield` (in Nightly builds, run with -Z macro-backtrace for more info)