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