]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / parameter_number_and_kind_impl.stderr
CommitLineData
dfeec247 1error[E0195]: lifetime parameters or bounds on type `A` do not match the trait declaration
f2b60f7d 2 --> $DIR/parameter_number_and_kind_impl.rs:14:11
dfeec247
XL
3 |
4LL | type A<'a>;
5 | ---- lifetimes in impl do not match this type in trait
6...
7LL | type A = u32;
8 | ^ lifetimes do not match type in trait
9
10error[E0049]: type `B` has 1 type parameter but its trait declaration has 0 type parameters
f2b60f7d 11 --> $DIR/parameter_number_and_kind_impl.rs:16:12
dfeec247
XL
12 |
13LL | type B<'a, 'b>;
14 | -- --
15 | |
16 | expected 0 type parameters
17...
18LL | type B<'a, T> = Vec<T>;
19 | ^^ ^
20 | |
21 | found 1 type parameter
22
23error[E0195]: lifetime parameters or bounds on type `C` do not match the trait declaration
f2b60f7d 24 --> $DIR/parameter_number_and_kind_impl.rs:18:11
dfeec247
XL
25 |
26LL | type C;
27 | - lifetimes in impl do not match this type in trait
28...
29LL | type C<'a> = u32;
30 | ^^^^ lifetimes do not match type in trait
31
32error[E0049]: type `A` has 1 type parameter but its trait declaration has 0 type parameters
f2b60f7d 33 --> $DIR/parameter_number_and_kind_impl.rs:25:12
dfeec247
XL
34 |
35LL | type A<'a>;
36 | -- expected 0 type parameters
37...
38LL | type A<T> = u32;
39 | ^ found 1 type parameter
40
41error[E0195]: lifetime parameters or bounds on type `B` do not match the trait declaration
f2b60f7d 42 --> $DIR/parameter_number_and_kind_impl.rs:27:11
dfeec247
XL
43 |
44LL | type B<'a, 'b>;
45 | -------- lifetimes in impl do not match this type in trait
46...
47LL | type B<'a> = u32;
48 | ^^^^ lifetimes do not match type in trait
49
50error[E0049]: type `C` has 1 type parameter but its trait declaration has 0 type parameters
f2b60f7d 51 --> $DIR/parameter_number_and_kind_impl.rs:29:12
dfeec247
XL
52 |
53LL | type C;
54 | - expected 0 type parameters
55...
56LL | type C<T> = T;
57 | ^ found 1 type parameter
58
59error: aborting due to 6 previous errors
60
61Some errors have detailed explanations: E0049, E0195.
62For more information about an error, try `rustc --explain E0049`.