@@ -5,6 +5,11 @@ LL | struct A<T, M: One<A=(), T>> {
5
5
| ---- ^ generic argument
6
6
| |
7
7
| the constraint is provided here
8
+ |
9
+ help: move the constraints after the generic arguments
10
+ |
11
+ LL | struct A<T, M: One<T, A=()>> {
12
+ | --^^^^
8
13
9
14
error: generic arguments must come before the first constraint
10
15
--> $DIR/suggest-move-types.rs:33:43
@@ -14,6 +19,11 @@ LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
14
19
| | |
15
20
| | generic argument
16
21
| the constraint is provided here
22
+ |
23
+ help: move the constraints after the generic arguments
24
+ |
25
+ LL | struct Al<'a, T, M: OneWithLifetime<T, 'a, A=()>> {
26
+ | -- ^^^^
17
27
18
28
error: generic arguments must come before the first constraint
19
29
--> $DIR/suggest-move-types.rs:40:46
@@ -26,6 +36,11 @@ LL | struct B<T, U, V, M: Three<A=(), B=(), C=(), T, U, V>> {
26
36
| | | the constraints are provided here
27
37
| | the constraints are provided here
28
38
| the constraints are provided here
39
+ |
40
+ help: move the constraints after the generic arguments
41
+ |
42
+ LL | struct B<T, U, V, M: Three<T, U, V, A=(), B=(), C=()>> {
43
+ | -- ^^^^^^^^^^^^^^^^
29
44
30
45
error: generic arguments must come before the first constraint
31
46
--> $DIR/suggest-move-types.rs:48:71
@@ -41,6 +56,11 @@ LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U,
41
56
| | | the constraints are provided here
42
57
| | the constraints are provided here
43
58
| the constraints are provided here
59
+ |
60
+ help: move the constraints after the generic arguments
61
+ |
62
+ LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, U, V, 'a, 'b, 'c, A=(), B=(), C=()>> {
63
+ | -- ^^^^^^^^^^^^^^^^
44
64
45
65
error: generic arguments must come before the first constraint
46
66
--> $DIR/suggest-move-types.rs:57:28
@@ -53,6 +73,11 @@ LL | struct C<T, U, V, M: Three<T, A=(), B=(), C=(), U, V>> {
53
73
| | | the constraints are provided here
54
74
| | the constraints are provided here
55
75
| generic argument
76
+ |
77
+ help: move the constraints after the generic arguments
78
+ |
79
+ LL | struct C<T, U, V, M: Three<A=(), B=(), C=(), U, V, A=(), B=(), C=()>> {
80
+ | -- ^^^^^^^^^^^^^^^^
56
81
57
82
error: generic arguments must come before the first constraint
58
83
--> $DIR/suggest-move-types.rs:65:53
@@ -68,6 +93,11 @@ LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=()
68
93
| | | the constraints are provided here
69
94
| | generic argument
70
95
| generic argument
96
+ |
97
+ help: move the constraints after the generic arguments
98
+ |
99
+ LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), U, 'b, V, 'c, A=(), B=(), C=()>> {
100
+ | -- ^^^^^^^^^^^^^^^^
71
101
72
102
error: generic arguments must come before the first constraint
73
103
--> $DIR/suggest-move-types.rs:74:28
@@ -80,6 +110,11 @@ LL | struct D<T, U, V, M: Three<T, A=(), B=(), U, C=(), V>> {
80
110
| | | the constraints are provided here
81
111
| | the constraints are provided here
82
112
| generic argument
113
+ |
114
+ help: move the constraints after the generic arguments
115
+ |
116
+ LL | struct D<T, U, V, M: Three<A=(), B=(), U, C=(), V, A=(), B=(), U, C=()>> {
117
+ | -- ^^^^^^^^^^^^^^^^^^^
83
118
84
119
error: generic arguments must come before the first constraint
85
120
--> $DIR/suggest-move-types.rs:82:53
@@ -95,6 +130,11 @@ LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, '
95
130
| | | the constraints are provided here
96
131
| | generic argument
97
132
| generic argument
133
+ |
134
+ help: move the constraints after the generic arguments
135
+ |
136
+ LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), U, 'b, C=(), V, 'c, A=(), B=(), U, 'b, C=()>> {
137
+ | -- ^^^^^^^^^^^^^^^^^^^^^^^
98
138
99
139
error[E0747]: type provided when a lifetime was expected
100
140
--> $DIR/suggest-move-types.rs:33:43
0 commit comments