]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/parameter_number_and_kind.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / parameter_number_and_kind.stderr
CommitLineData
5869c6ff 1error[E0107]: this associated type takes 1 lifetime argument but 2 lifetime arguments were supplied
136023e0 2 --> $DIR/parameter_number_and_kind.rs:12:24
dfeec247
XL
3 |
4LL | type FErr1 = Self::E<'static, 'static>;
17df50a5 5 | ^ ------- help: remove this lifetime argument
5869c6ff
XL
6 | |
7 | expected 1 lifetime argument
8 |
9note: associated type defined here, with 1 lifetime parameter: `'a`
136023e0 10 --> $DIR/parameter_number_and_kind.rs:9:10
5869c6ff
XL
11 |
12LL | type E<'a, T>;
13 | ^ --
dfeec247 14
17df50a5 15error[E0107]: this associated type takes 1 generic argument but 0 generic arguments were supplied
136023e0 16 --> $DIR/parameter_number_and_kind.rs:12:24
dfeec247
XL
17 |
18LL | type FErr1 = Self::E<'static, 'static>;
17df50a5 19 | ^ expected 1 generic argument
5869c6ff 20 |
17df50a5 21note: associated type defined here, with 1 generic parameter: `T`
136023e0 22 --> $DIR/parameter_number_and_kind.rs:9:10
5869c6ff
XL
23 |
24LL | type E<'a, T>;
25 | ^ -
17df50a5 26help: add missing generic argument
5869c6ff
XL
27 |
28LL | type FErr1 = Self::E<'static, 'static, T>;
94222f64 29 | +++
dfeec247 30
17df50a5 31error[E0107]: this associated type takes 1 generic argument but 2 generic arguments were supplied
136023e0 32 --> $DIR/parameter_number_and_kind.rs:15:27
dfeec247
XL
33 |
34LL | type FErr2<T> = Self::E<'static, T, u32>;
17df50a5 35 | ^ --- help: remove this generic argument
5869c6ff 36 | |
17df50a5 37 | expected 1 generic argument
5869c6ff 38 |
17df50a5 39note: associated type defined here, with 1 generic parameter: `T`
136023e0 40 --> $DIR/parameter_number_and_kind.rs:9:10
5869c6ff
XL
41 |
42LL | type E<'a, T>;
43 | ^ -
dfeec247 44
f035d41b 45error: aborting due to 3 previous errors
dfeec247
XL
46
47For more information about this error, try `rustc --explain E0107`.