]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/parameter_number_and_kind.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[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:12: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:9:10
11    |
12 LL |     type E<'a, T>;
13    |          ^ --
14
15 error[E0107]: this associated type takes 1 generic argument but 0 generic arguments were supplied
16   --> $DIR/parameter_number_and_kind.rs:12:24
17    |
18 LL |     type FErr1 = Self::E<'static, 'static>;
19    |                        ^ expected 1 generic argument
20    |
21 note: associated type defined here, with 1 generic parameter: `T`
22   --> $DIR/parameter_number_and_kind.rs:9:10
23    |
24 LL |     type E<'a, T>;
25    |          ^     -
26 help: add missing generic argument
27    |
28 LL |     type FErr1 = Self::E<'static, 'static, T>;
29    |                                          +++
30
31 error[E0107]: this associated type takes 1 generic argument but 2 generic arguments were supplied
32   --> $DIR/parameter_number_and_kind.rs:15:27
33    |
34 LL |     type FErr2<T> = Self::E<'static, T, u32>;
35    |                           ^             --- help: remove this generic argument
36    |                           |
37    |                           expected 1 generic argument
38    |
39 note: associated type defined here, with 1 generic parameter: `T`
40   --> $DIR/parameter_number_and_kind.rs:9: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`.