]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/parameter_number_and_kind.stderr
Rollup merge of #82308 - estebank:issue-82290, r=lcnr
[rust.git] / src / test / ui / generic-associated-types / parameter_number_and_kind.stderr
1 error[E0107]: this associated type takes 1 lifetime argument but 2 lifetime arguments were supplied
2   --> $DIR/parameter_number_and_kind.rs:13:24
3    |
4 LL |     type FErr1 = Self::E<'static, 'static>;
5    |                        ^        --------- help: remove this lifetime argument
6    |                        |
7    |                        expected 1 lifetime argument
8    |
9 note: associated type defined here, with 1 lifetime parameter: `'a`
10   --> $DIR/parameter_number_and_kind.rs:10:10
11    |
12 LL |     type E<'a, T>;
13    |          ^ --
14
15 error[E0107]: this associated type takes 1 type argument but 0 type arguments were supplied
16   --> $DIR/parameter_number_and_kind.rs:13:24
17    |
18 LL |     type FErr1 = Self::E<'static, 'static>;
19    |                        ^ expected 1 type argument
20    |
21 note: associated type defined here, with 1 type parameter: `T`
22   --> $DIR/parameter_number_and_kind.rs:10:10
23    |
24 LL |     type E<'a, T>;
25    |          ^     -
26 help: add missing type argument
27    |
28 LL |     type FErr1 = Self::E<'static, 'static, T>;
29    |                                          ^^^
30
31 error[E0107]: this associated type takes 1 type argument but 2 type arguments were supplied
32   --> $DIR/parameter_number_and_kind.rs:16:27
33    |
34 LL |     type FErr2<T> = Self::E<'static, T, u32>;
35    |                           ^           ----- help: remove this type argument
36    |                           |
37    |                           expected 1 type argument
38    |
39 note: associated type defined here, with 1 type parameter: `T`
40   --> $DIR/parameter_number_and_kind.rs:10:10
41    |
42 LL |     type E<'a, T>;
43    |          ^     -
44
45 error: aborting due to 3 previous errors
46
47 For more information about this error, try `rustc --explain E0107`.