bitvec icon indicating copy to clipboard operation
bitvec copied to clipboard

`bits!` macro causes "cannot find type `Lsb0` in this scope"

Open programmerjake opened this issue 1 year ago • 0 comments

bitvec version: 1.0.1

use bitvec::bits;

fn main() {
    let _ = bits![0];
}

produces:

   Compiling bitvec-test v0.1.0 (/tmp/bitvec-test)
error[E0412]: cannot find type `Lsb0` in this scope
 --> src/main.rs:4:13
  |
4 |     let _ = bits![0];
  |             ^^^^^^^^ not found in this scope
  |
  = note: this error originates in the macro `bits` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this struct
  |
1 + use bitvec::prelude::Lsb0;
  |

For more information about this error, try `rustc --explain E0412`.
error: could not compile `bitvec-test` (bin "bitvec-test") due to 1 previous error

programmerjake avatar Jun 03 '24 05:06 programmerjake