2015-08-07 12:31:42 -05:00
|
|
|
// Check that we test WF conditions for fn return types in a trait definition.
|
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
|
|
|
|
|
|
|
struct Bar<T:Eq+?Sized> { value: Box<T> }
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn bar(&self) -> &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.
|
|
|
|
}
|
|
|
|
|
2015-12-15 03:31:58 -06:00
|
|
|
fn main() { }
|