Closed
Description
I tried this code:
let ip = Ipv6Addr::new(123, 0, 3, 0, 0, 0, 36, 2);
dbg!(&ip);
I expected to see this happen: It prints 7b:0:3::24:2
Instead, this happened: It prints 0x7b:0x0:0x3::0x24:0x2
Meta
rustc --version --verbose
:
rustc 1.48.0 (7eac88abb 2020-11-16)
binary: rustc
commit-hash: 7eac88abb2e57e752f3302f02be5f3ce3d7adfb4
commit-date: 2020-11-16
host: x86_64-unknown-linux-gnu
release: 1.48.0
LLVM version: 11.0
Backtrace
<backtrace>