blob: 68d84bae3d8594df7735d23a80850da21a939a58 [file] [log] [blame] [edit]
//@ run-pass
fn main() {
struct X;
trait Foo<T> {
fn foo(&self) where (T, Option<T>): Ord {} //~ WARN methods `foo` and `bar` are never used
fn bar(&self, x: &Option<T>) -> bool
where Option<T>: Ord { *x < *x }
}
impl Foo<X> for () {}
let _ = &() as &dyn Foo<X>;
}