#[lang = "sized"] pub trait Sized {} fn test(a: T) -> T { a } fn main() { let a; a = test(123); let aa: i32 = a; // { dg-warning "unused name" "" { target *-*-* } .-1 } let b; b = test::(456); let bb: u32 = b; // { dg-warning "unused name" "" { target *-*-* } .-1 } }