I would expect this to work, and print '1': println!("{}", std::num::Wrapping(1u8));
. Instead the compiler informs me:
error: the trait core::fmt::Display
is not implemented for the type core::num::Wrapping<u8>
Perhaps Wrapping
should implement Display
?