Cargo check failed with error: could not compile `bitvec` (lib)
Opened this issue · 2 comments
Hirohumi commented
cargo check failed with the following messages:
error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
--> /Users/hirohumi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitvec-1.0.1/src/slice.rs:1783:19
|
1755 | impl<T, O> BitSlice<T, O>
| - first use of `T`
...
1783 | pub fn to_bitvec<T>(&self) -> BitVec<T::Unalias, O> {
| ^ already used
error[E0282]: type annotations needed
--> /Users/hirohumi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitvec-1.0.1/src/slice/api.rs:2369:8
|
2369 | self.to_bitvec()
| ^^^^^^^^^ cannot infer type of the type parameter `T` declared on the method `to_bitvec`
|
help: consider specifying the generic argument
|
2369 | self.to_bitvec::<T>()
| +++++
first occurred when running the following command
RUSTFLAGS='-C link-arg=-Wl,-soname,libmylib.so' cargo build --target aarch64-linux-android
was used to be okay, not sure what is causing the problem
dtolnay commented
That code does not appear in the published bitvec 1.0.1.
https://docs.rs/crate/bitvec/1.0.1/source/src/slice.rs
Hirohumi commented
That code does not appear in the published bitvec 1.0.1. https://docs.rs/crate/bitvec/1.0.1/source/src/slice.rs
wow, that is really interesting... did my rust cargo messed up a little bit? I'll go check……