]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/union/union-trait-impl.rs
9 impl fmt
::Display
for U
{
10 fn fmt(&self, f
: &mut fmt
::Formatter
) -> fmt
::Result
{
11 unsafe { write!(f, "Oh hai {}
", self.a) }
16 assert_eq!(U { a: 2 }.to_string(), "Oh hai
2");