//@ run-pass #![deny(dead_code)] fn main() { struct Foo { x: T } type Bar = Foo; let spam = |Bar { x }| x != 0; println!("{}", spam(Foo { x: 10 })); }