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