mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
18 lines
340 B
Rust
18 lines
340 B
Rust
// Check that we test WF conditions for fn where clauses in a trait definition.
|
|
|
|
|
|
#![allow(dead_code)]
|
|
#![allow(unused_variables)]
|
|
|
|
struct Bar<T:Eq+?Sized> { value: Box<T> }
|
|
|
|
trait Foo {
|
|
fn bar(&self) where Self: Sized, Bar<Self>: Copy;
|
|
//~^ ERROR E0277
|
|
//
|
|
// Here, Eq ought to be implemented.
|
|
}
|
|
|
|
|
|
fn main() { }
|