rust/src/test/ui/issues/issue-34503.rs
2019-07-27 18:56:16 +03:00

12 lines
260 B
Rust

// run-pass
fn main() {
struct X;
trait Foo<T> {
fn foo(&self) where (T, Option<T>): Ord {}
fn bar(&self, x: &Option<T>) -> bool
where Option<T>: Ord { *x < *x }
}
impl Foo<X> for () {}
let _ = &() as &dyn Foo<X>;
}