#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(int_format_into)] use core::fmt::NumBuffer; fn main() { let n = 0u8; let mut buf = NumBuffer::new(); assert_eq!(n.format_into(& mut buf), "0"); let n1 = 32u8; assert_eq!(n1.format_into(& mut buf), "32"); let n2 = u8::MAX; assert_eq!(n2.format_into(& mut buf), u8::MAX.to_string()); }