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

Build issue with bitvec #106

Closed
hhanh00 opened this issue Feb 15, 2021 · 2 comments
Closed

Build issue with bitvec #106

hhanh00 opened this issue Feb 15, 2021 · 2 comments

Comments

@hhanh00
Copy link

hhanh00 commented Feb 15, 2021

On a clean build, I get several instances of this error:

error[E0034]: multiple applicable items in scope
   --> /home/hanh/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.18.4/src/field.rs:307:25
    |
307 |         check("load", len, M::BITS);
    |                               ^^^^ multiple `BITS` found
    |
note: candidate #1 is defined in the trait `mem::BitMemory`
   --> /home/hanh/.cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.18.4/src/mem.rs:26:2
    |
26  |     const BITS: u8 = mem::size_of::<Self>() as u8 * 8;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait `funty::IsNumber`
   --> /home/hanh/.cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
    |
144 |     const BITS: u32;
    |     ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
    |
307 |         check("load", len, mem::BitMemory::BITS);
    |                            ^^^^^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
    |
307 |         check("load", len, funty::IsNumber::BITS);
    |                            ^^^^^^^^^^^^^^^^^^^^^

To reproduce, just clone the repo and run cargo build.

@hhanh00 hhanh00 closed this as completed Feb 15, 2021
@hhanh00
Copy link
Author

hhanh00 commented Feb 15, 2021

Sorry - duplicate

@Kinrany
Copy link

Kinrany commented Dec 29, 2021

Duplicate of #105, to be specific.

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

2 participants