rust/src/test/ui/wf/wf-trait-default-fn-where-clause.rs
2018-12-25 21:08:33 -07:00

20 lines
366 B
Rust

// Check that we test WF conditions for fn arguments. Because the
// current code is so goofy, this is only a warning for now.
#![allow(dead_code)]
#![allow(unused_variables)]
trait Bar<T:Eq+?Sized> { }
trait Foo {
fn bar<A>(&self) where A: Bar<Self> {
//~^ ERROR E0277
//
// Here, Eq ought to be implemented.
}
}
fn main() { }