mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
20 lines
412 B
Rust
20 lines
412 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.
|
|
|
|
#![feature(rustc_attrs)]
|
|
#![allow(dead_code)]
|
|
#![allow(unused_variables)]
|
|
|
|
struct Bar<T:Eq+?Sized> { value: Box<T> }
|
|
|
|
trait Foo {
|
|
fn bar(&self) -> Bar<Self> {
|
|
//~^ ERROR E0277
|
|
//
|
|
// Here, Eq ought to be implemented.
|
|
loop { }
|
|
}
|
|
}
|
|
|
|
fn main() { }
|