summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs
blob: de9cad308014d27921dfad562d22b476dc47bf29 (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-fail

trait Foo {
    type Assoc<'a, 'b>;
}
impl Foo for () {
    type Assoc<'a, 'b> = () where 'a: 'b;
    //~^ impl has stricter requirements than trait
}

fn main() {}