]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs
New upstream version 1.65.0+dfsg1
[rustc.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() {}