summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr
blob: 1458bf0c4a49341147eb47f4bf57c7601c8e5199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
error[E0195]: lifetime parameters or bounds on type `A` do not match the trait declaration
  --> $DIR/parameter_number_and_kind_impl.rs:15:11
   |
LL |     type A<'a>;
   |           ---- lifetimes in impl do not match this type in trait
...
LL |     type A = u32;
   |           ^ lifetimes do not match type in trait

error[E0049]: type `B` has 1 type parameter but its trait declaration has 0 type parameters
  --> $DIR/parameter_number_and_kind_impl.rs:17:12
   |
LL |     type B<'a, 'b>;
   |            --  --
   |            |
   |            expected 0 type parameters
...
LL |     type B<'a, T> = Vec<T>;
   |            ^^  ^
   |            |
   |            found 1 type parameter

error[E0195]: lifetime parameters or bounds on type `C` do not match the trait declaration
  --> $DIR/parameter_number_and_kind_impl.rs:19:11
   |
LL |     type C;
   |           - lifetimes in impl do not match this type in trait
...
LL |     type C<'a> = u32;
   |           ^^^^ lifetimes do not match type in trait

error[E0049]: type `A` has 1 type parameter but its trait declaration has 0 type parameters
  --> $DIR/parameter_number_and_kind_impl.rs:26:12
   |
LL |     type A<'a>;
   |            -- expected 0 type parameters
...
LL |     type A<T> = u32;
   |            ^ found 1 type parameter

error[E0195]: lifetime parameters or bounds on type `B` do not match the trait declaration
  --> $DIR/parameter_number_and_kind_impl.rs:28:11
   |
LL |     type B<'a, 'b>;
   |           -------- lifetimes in impl do not match this type in trait
...
LL |     type B<'a> = u32;
   |           ^^^^ lifetimes do not match type in trait

error[E0049]: type `C` has 1 type parameter but its trait declaration has 0 type parameters
  --> $DIR/parameter_number_and_kind_impl.rs:30:12
   |
LL |     type C;
   |           - expected 0 type parameters
...
LL |     type C<T> = T;
   |            ^ found 1 type parameter

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0049, E0195.
For more information about an error, try `rustc --explain E0049`.