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