mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00
23 lines
459 B
Rust
23 lines
459 B
Rust
//@ revisions: current next
|
|
//@[next] compile-flags: -Znext-solver
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
|
|
// Check that we test WF conditions for fn arguments 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, x: &Bar<Self>);
|
|
//~^ ERROR E0277
|
|
//
|
|
// Here, Eq ought to be implemented.
|
|
}
|
|
|
|
fn main() {}
|