1 2 3 4 5 6 7 8
#[lang = "sized"] trait Sized {} trait Bar {} struct S; // { dg-warning "struct is never constructed" } pub fn test(foo: impl Bar) {}