@@ -6,10 +6,10 @@ LL | struct A<T, M: One<A=(), T>> {
66 | |
77 | the constraint is provided here
88 |
9- help: move the constraints after the generic arguments
9+ help: move the constraint after the generic argument
1010 |
11- LL | struct A<T, M: One<T, A= ()>> {
12- | -- ^^^^
11+ LL | struct A<T, M: One<T, A = ()>> {
12+ | ^^^^^^^ ^^^^
1313
1414error: generic arguments must come before the first constraint
1515 --> $DIR/suggest-move-types.rs:33:43
@@ -20,10 +20,10 @@ LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
2020 | | generic argument
2121 | the constraint is provided here
2222 |
23- help: move the constraints after the generic arguments
23+ help: move the constraint after the generic arguments
2424 |
25- LL | struct Al<'a, T, M: OneWithLifetime<T, 'a, A= ()>> {
26- | -- ^^^^
25+ LL | struct Al<'a, T, M: OneWithLifetime<'a, T, A = ()>> {
26+ | ^^^^^^^^^^^ ^^^^
2727
2828error: generic arguments must come before the first constraint
2929 --> $DIR/suggest-move-types.rs:40:46
@@ -39,8 +39,8 @@ LL | struct B<T, U, V, M: Three<A=(), B=(), C=(), T, U, V>> {
3939 |
4040help: move the constraints after the generic arguments
4141 |
42- LL | struct B<T, U, V, M: Three<T, U, V, A= (), B= (), C= ()>> {
43- | -- ^^^^^^^^^^^^^^^^
42+ LL | struct B<T, U, V, M: Three<T, U, V, A = (), B = (), C = ()>> {
43+ | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
4444
4545error: generic arguments must come before the first constraint
4646 --> $DIR/suggest-move-types.rs:48:71
@@ -59,8 +59,8 @@ LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U,
5959 |
6060help: move the constraints after the generic arguments
6161 |
62- LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, U, V, 'a, 'b, 'c, A= (), B= (), C= ()>> {
63- | -- ^^^^^^^^^^^^^^^^
62+ LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<'a, 'b, 'c, T, U, V, A = (), B = (), C = ()>> {
63+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
6464
6565error: generic arguments must come before the first constraint
6666 --> $DIR/suggest-move-types.rs:57:28
@@ -76,8 +76,8 @@ LL | struct C<T, U, V, M: Three<T, A=(), B=(), C=(), U, V>> {
7676 |
7777help: move the constraints after the generic arguments
7878 |
79- LL | struct C<T, U, V, M: Three<A=(), B=(), C=(), U, V, A= (), B= (), C= ()>> {
80- | -- ^^^^^^^^^^^^^^^^
79+ LL | struct C<T, U, V, M: Three<T, U, V, A = (), B = (), C = ()>> {
80+ | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
8181
8282error: generic arguments must come before the first constraint
8383 --> $DIR/suggest-move-types.rs:65:53
@@ -96,8 +96,8 @@ LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=()
9696 |
9797help: move the constraints after the generic arguments
9898 |
99- LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), U, 'b , V, 'c, A= (), B= (), C= ()>> {
100- | -- ^^^^^^^^^^^^^^^^
99+ LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<'a, 'b, 'c, T, U , V, A = (), B = (), C = ()>> {
100+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
101101
102102error: generic arguments must come before the first constraint
103103 --> $DIR/suggest-move-types.rs:74:28
@@ -113,8 +113,8 @@ LL | struct D<T, U, V, M: Three<T, A=(), B=(), U, C=(), V>> {
113113 |
114114help: move the constraints after the generic arguments
115115 |
116- LL | struct D<T, U, V, M: Three<A=(), B=(), U, C=(), V, A= (), B= (), U, C= ()>> {
117- | -- ^^^^^^^^^^^^^^^^^^^
116+ LL | struct D<T, U, V, M: Three<T, U, V, A = (), B = (), C = ()>> {
117+ | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
118118
119119error: generic arguments must come before the first constraint
120120 --> $DIR/suggest-move-types.rs:82:53
@@ -133,8 +133,8 @@ LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, '
133133 |
134134help: move the constraints after the generic arguments
135135 |
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- | -- ^^^^^^^^^^^^^^^^^^^^^^^
136+ LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<'a, 'b, 'c, T, U , V, A = (), B = (), C = ()>> {
137+ | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^
138138
139139error[E0747]: type provided when a lifetime was expected
140140 --> $DIR/suggest-move-types.rs:33:43
0 commit comments