summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-34503.rs
blob: 26e7358408f484c10ed78651361b17d10f381b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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>;
}