]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/missing_lifetime_const.stderr
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / 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:6: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:2: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`.