Skip to content

Instantly share code, notes, and snippets.

@rcloran
Created September 7, 2023 23:06
Show Gist options
  • Save rcloran/abda671f0b3df02ddefa03d16e9e2196 to your computer and use it in GitHub Desktop.
Save rcloran/abda671f0b3df02ddefa03d16e9e2196 to your computer and use it in GitHub Desktop.
error[E0277]: the trait bound `Pinger: AddrContainer<()>` is not satisfied
--> examples/ping.rs:19:23
|
19 | pinger.add_ipaddr("8.8.8.8".parse()?);
| ---------- ^^^^^^^^^^^^^^^^^^ the trait `AddrContainer<()>` is not implemented for `Pinger`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `AddrContainer<T>`:
<Pinger as AddrContainer<&'a S>>
<Pinger as AddrContainer<IpAddr>>
note: required by a bound in `Pinger::add_ipaddr`
--> /Users/russell/src/fastping-rs/src/lib.rs:122:54
|
122 | pub fn add_ipaddr<T>(&self, addr: T) where Self: AddrContainer<T> {
| ^^^^^^^^^^^^^^^^ required by this bound in `Pinger::add_ipaddr`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment