We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4869794 + 0d38cae commit ef77ca7Copy full SHA for ef77ca7
src/libstd/io/net/udp.rs
@@ -557,11 +557,12 @@ mod test {
557
let addr1 = next_test_ip4();
558
let addr2 = next_test_ip4();
559
let mut a = UdpSocket::bind(addr1).unwrap();
560
+ let a2 = UdpSocket::bind(addr2).unwrap();
561
562
let (tx, rx) = channel();
563
let (tx2, rx2) = channel();
564
spawn(move|| {
- let mut a = UdpSocket::bind(addr2).unwrap();
565
+ let mut a = a2;
566
assert_eq!(a.recv_from(&mut [0]), Ok((1, addr1)));
567
assert_eq!(a.send_to(&[0], addr1), Ok(()));
568
rx.recv();
0 commit comments