#![allow(dead_code, deprecated, unused_variables, unused_mut)] use std::net::{Ipv4Addr, Ipv6Addr}; fn main() { assert_eq!( Ipv4Addr::new(192, 0, 2, 255).to_ipv6_mapped(), Ipv6Addr::new(0, 0, 0, 0, 0, 0xffff, 0xc000, 0x2ff) ); }