You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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
The text was updated successfully, but these errors were encountered:
On Mac OS 13.6, cargo 1.74.0, rustc 1.74.0:
The text was updated successfully, but these errors were encountered: