about summary refs log tree commit diff
path: root/tests/ui/generic-associated-types/missing-where-clause-on-trait.rs
blob: 5354421f4b9b77d12948add78b56e35fd25cc9ee (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;
    //~^ ERROR impl has stricter requirements than trait
}

fn main() {}