rust/tests/target/issue-1211.rs
2018-03-02 15:07:13 +13:00

14 lines
336 B
Rust

fn main() {
for iface in &ifaces {
match iface.addr {
get_if_addrs::IfAddr::V4(ref addr) => match addr.broadcast {
Some(ip) => {
sock.send_to(&buf, (ip, 8765)).expect("foobar");
}
_ => (),
},
_ => (),
};
}
}