#![allow(dead_code, deprecated, unused_variables, unused_mut)] use std::net::Ipv4Addr; fn main() { let addr = Ipv4Addr::LOCALHOST; assert_eq!(addr, Ipv4Addr::new(127, 0, 0, 1)); }