Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
programmerjake opened this issue Jun 3, 2024 · 0 comments
Open

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

programmerjake opened this issue Jun 3, 2024 · 0 comments

Comments

@programmerjake
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant