// run-pass #![deny(dead_code)] pub struct GenericFoo(#[allow(unused_tuple_struct_fields)] T); type Foo = GenericFoo; impl Foo { fn bar(self) -> u8 { 0 } } fn main() { println!("{}", GenericFoo(0).bar()); }