#[lang = "sized"] pub trait Sized {} pub trait MyBinaryTrait { fn do_something(&self, rhs: &Rhs); } struct Foo { // { dg-warning "struct is never constructed" "" { target *-*-* } .-1 } value: T, } impl MyBinaryTrait for Foo { fn do_something(&self, _rhs: &Self) {} }