1 //! net tests 2 use std::net::UdpSocket; 3 #[test] 4 fn udp_start() { 5 let socket = UdpSocket::bind("127.0.0.1:0").expect("UdpSocket::bind failed"); 6 assert!(socket.broadcast().is_ok()); 7 }