]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-34503.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-34503.rs
1 // run-pass
2 fn main() {
3 struct X;
4 trait Foo<T> {
5 fn foo(&self) where (T, Option<T>): Ord {}
6 fn bar(&self, x: &Option<T>) -> bool
7 where Option<T>: Ord { *x < *x }
8 }
9 impl Foo<X> for () {}
10 let _ = &() as &dyn Foo<X>;
11 }