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)
|