]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/missing_lifetime_const.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / missing_lifetime_const.stderr
1 error[E0107]: this associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
2 --> $DIR/missing_lifetime_const.rs:8:24
3 |
4 LL | let _: <T as Foo>::Assoc<3>;
5 | ^^^^^ expected 1 lifetime argument
6 |
7 note: associated type defined here, with 1 lifetime parameter: `'a`
8 --> $DIR/missing_lifetime_const.rs:4:10
9 |
10 LL | type Assoc<'a, const N: usize>;
11 | ^^^^^ --
12 help: add missing lifetime argument
13 |
14 LL | let _: <T as Foo>::Assoc<'a, 3>;
15 | ^^^
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0107`.