]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs
Rollup merge of #101741 - andrewpollack:add-needs-unwind-ui-tests, r=tmandry
[rust.git] / src / test / ui / generic-associated-types / missing-where-clause-on-trait.rs
1 // check-fail
2
3 trait Foo {
4     type Assoc<'a, 'b>;
5 }
6 impl Foo for () {
7     type Assoc<'a, 'b> = () where 'a: 'b;
8     //~^ impl has stricter requirements than trait
9 }
10
11 fn main() {}