Cargo install gping fails with "type annotations needed"
DavidAntliff opened this issue · comments
David Antliff commented
On Mac OS 13.6, cargo 1.74.0, rustc 1.74.0:
$ cargo install gping
...
Compiling gping v1.15.1
error[E0283]: type annotations needed
--> /Users/david/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gping-1.15.1/src/main.rs:486:26
|
486 | .constraints(
| ^^^^^^^^^^^ cannot infer type of the type parameter `C` declared on the method `constraints`
...
491 | .as_ref(),
| ------ type must be known at this point
|
= note: multiple `impl`s satisfying `Vec<Constraint>: AsRef<_>` found in the `alloc` crate:
- impl<T, A> AsRef<Vec<T, A>> for Vec<T, A>
where A: Allocator;
- impl<T, A> AsRef<[T]> for Vec<T, A>
where A: Allocator;
help: consider specifying the generic argument
|
486 | .constraints::<&T>(
| ++++++
For more information about this error, try `rustc --explain E0283`.
error: could not compile `gping` (bin "gping") due to previous error
Tom Forbes commented
My bad, the fix wasn't included in the release for some reason. Doing a new one now.
Tom Forbes commented
Should be ok!