]>
Commit | Line | Data |
---|---|---|
17df50a5 | 1 | error[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 | | |
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` | |
f2b60f7d | 8 | --> $DIR/missing_lifetime_const.rs:2:10 |
17df50a5 XL |
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>; | |
94222f64 | 15 | | +++ |
17df50a5 | 16 | |
136023e0 | 17 | error: aborting due to previous error |
17df50a5 XL |
18 | |
19 | For more information about this error, try `rustc --explain E0107`. |