blob: c00f6dd10af21fc02428eb141c6a0013ffd879f1 [file] [log] [blame]
//@ revisions: current next
//@[next] compile-flags: -Znext-solver
//@ ignore-compare-mode-next-solver (explicit revisions)
// 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>;
//~^ ERROR E0277
//
// Here, Eq ought to be implemented.
}
fn main() {}