2015-08-07 12:31:42 -05:00
|
|
|
// Check that we test WF conditions for fn arguments. Because the
|
|
|
|
// current code is so goofy, this is only a warning for now.
|
|
|
|
|
2018-10-30 18:18:11 -05:00
|
|
|
|
2015-08-07 12:31:42 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
|
|
|
|
|
|
|
trait Bar<T:Eq+?Sized> { }
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn bar<A>(&self) where A: Bar<Self> {
|
2015-12-15 03:31:58 -06:00
|
|
|
//~^ ERROR E0277
|
2015-08-07 12:31:42 -05:00
|
|
|
//
|
|
|
|
// Here, Eq ought to be implemented.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-30 18:18:11 -05:00
|
|
|
|
2015-12-15 03:31:58 -06:00
|
|
|
fn main() { }
|