@@ -5,6 +5,11 @@ LL | struct A<T, M: One<A=(), T>> {
55 | ---- ^ generic argument
66 | |
77 | 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+ | --^^^^
813
914error: generic arguments must come before the first constraint
1015 --> $DIR/suggest-move-types.rs:33:43
@@ -14,6 +19,11 @@ LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
1419 | | |
1520 | | generic argument
1621 | 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+ | -- ^^^^
1727
1828error: generic arguments must come before the first constraint
1929 --> $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>> {
2636 | | | the constraints are provided here
2737 | | the constraints are provided here
2838 | 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+ | -- ^^^^^^^^^^^^^^^^
2944
3045error: generic arguments must come before the first constraint
3146 --> $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,
4156 | | | the constraints are provided here
4257 | | the constraints are provided here
4358 | 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+ | -- ^^^^^^^^^^^^^^^^
4464
4565error: generic arguments must come before the first constraint
4666 --> $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>> {
5373 | | | the constraints are provided here
5474 | | the constraints are provided here
5575 | 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+ | -- ^^^^^^^^^^^^^^^^
5681
5782error: generic arguments must come before the first constraint
5883 --> $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=()
6893 | | | the constraints are provided here
6994 | | generic argument
7095 | 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+ | -- ^^^^^^^^^^^^^^^^
71101
72102error: generic arguments must come before the first constraint
73103 --> $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>> {
80110 | | | the constraints are provided here
81111 | | the constraints are provided here
82112 | 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+ | -- ^^^^^^^^^^^^^^^^^^^
83118
84119error: generic arguments must come before the first constraint
85120 --> $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, '
95130 | | | the constraints are provided here
96131 | | generic argument
97132 | 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+ | -- ^^^^^^^^^^^^^^^^^^^^^^^
98138
99139error[E0747]: type provided when a lifetime was expected
100140 --> $DIR/suggest-move-types.rs:33:43
0 commit comments