]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | error: generic arguments must come before the first constraint |
2 | --> $DIR/suggest-move-types.rs:26:26 | |
9fa01778 | 3 | | |
532ac7d7 | 4 | LL | struct A<T, M: One<A=(), T>> { |
ba9703b0 | 5 | | ---- ^ generic argument |
9fa01778 | 6 | | | |
ba9703b0 XL |
7 | | constraint |
8 | | | |
9 | help: move the constraint after the generic argument | |
10 | | | |
11 | LL | struct A<T, M: One<T, A = ()>> { | |
12 | | ^^^^^^^^^^^ | |
9fa01778 | 13 | |
ba9703b0 XL |
14 | error: generic arguments must come before the first constraint |
15 | --> $DIR/suggest-move-types.rs:33:43 | |
9fa01778 XL |
16 | | |
17 | LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> { | |
ba9703b0 | 18 | | ---- ^ ^^ generic arguments |
9fa01778 | 19 | | | |
ba9703b0 XL |
20 | | constraint |
21 | | | |
22 | help: move the constraint after the generic arguments | |
23 | | | |
24 | LL | struct Al<'a, T, M: OneWithLifetime<'a, T, A = ()>> { | |
25 | | ^^^^^^^^^^^^^^^ | |
9fa01778 | 26 | |
ba9703b0 XL |
27 | error: generic arguments must come before the first constraint |
28 | --> $DIR/suggest-move-types.rs:40:46 | |
9fa01778 | 29 | | |
532ac7d7 | 30 | LL | struct B<T, U, V, M: Three<A=(), B=(), C=(), T, U, V>> { |
ba9703b0 XL |
31 | | ---- ---- ---- ^ ^ ^ generic arguments |
32 | | | | |
33 | | constraints | |
34 | | | |
35 | help: move the constraints after the generic arguments | |
36 | | | |
37 | LL | struct B<T, U, V, M: Three<T, U, V, A = (), B = (), C = ()>> { | |
38 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
9fa01778 | 39 | |
ba9703b0 XL |
40 | error: generic arguments must come before the first constraint |
41 | --> $DIR/suggest-move-types.rs:48:71 | |
9fa01778 XL |
42 | | |
43 | LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U, V, 'a, 'b, 'c>> { | |
ba9703b0 XL |
44 | | ---- ---- ---- ^ ^ ^ ^^ ^^ ^^ generic arguments |
45 | | | | |
46 | | constraints | |
47 | | | |
48 | help: move the constraints after the generic arguments | |
49 | | | |
50 | LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<'a, 'b, 'c, T, U, V, A = (), B = (), C = ()>> { | |
51 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
9fa01778 | 52 | |
ba9703b0 | 53 | error: generic arguments must come before the first constraint |
9fa01778 XL |
54 | --> $DIR/suggest-move-types.rs:57:28 |
55 | | | |
532ac7d7 | 56 | LL | struct C<T, U, V, M: Three<T, A=(), B=(), C=(), U, V>> { |
ba9703b0 XL |
57 | | ^ ---- ---- ---- ^ ^ generic arguments |
58 | | | | |
59 | | constraints | |
60 | | | |
61 | help: move the constraints after the generic arguments | |
62 | | | |
63 | LL | struct C<T, U, V, M: Three<T, U, V, A = (), B = (), C = ()>> { | |
64 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
9fa01778 | 65 | |
ba9703b0 XL |
66 | error: generic arguments must come before the first constraint |
67 | --> $DIR/suggest-move-types.rs:65:53 | |
9fa01778 XL |
68 | | |
69 | LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=(), U, 'b, V, 'c>> { | |
ba9703b0 XL |
70 | | ^ ^^ ---- ---- ---- ^ ^^ ^ ^^ generic arguments |
71 | | | | |
72 | | constraints | |
73 | | | |
74 | help: move the constraints after the generic arguments | |
75 | | | |
76 | LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<'a, 'b, 'c, T, U, V, A = (), B = (), C = ()>> { | |
77 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
9fa01778 | 78 | |
ba9703b0 XL |
79 | error: generic arguments must come before the first constraint |
80 | --> $DIR/suggest-move-types.rs:74:28 | |
9fa01778 | 81 | | |
532ac7d7 | 82 | LL | struct D<T, U, V, M: Three<T, A=(), B=(), U, C=(), V>> { |
ba9703b0 XL |
83 | | ^ ---- ---- ^ ---- ^ generic arguments |
84 | | | | |
85 | | constraints | |
86 | | | |
87 | help: move the constraints after the generic arguments | |
88 | | | |
89 | LL | struct D<T, U, V, M: Three<T, U, V, A = (), B = (), C = ()>> { | |
90 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
9fa01778 | 91 | |
ba9703b0 XL |
92 | error: generic arguments must come before the first constraint |
93 | --> $DIR/suggest-move-types.rs:82:53 | |
9fa01778 XL |
94 | | |
95 | LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, 'b, C=(), V, 'c>> { | |
ba9703b0 XL |
96 | | ^ ^^ ---- ---- ^ ^^ ---- ^ ^^ generic arguments |
97 | | | | |
98 | | constraints | |
99 | | | |
100 | help: move the constraints after the generic arguments | |
101 | | | |
102 | LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<'a, 'b, 'c, T, U, V, A = (), B = (), C = ()>> { | |
103 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
9fa01778 | 104 | |
74b04a01 | 105 | error[E0747]: type provided when a lifetime was expected |
ba9703b0 | 106 | --> $DIR/suggest-move-types.rs:33:43 |
9fa01778 XL |
107 | | |
108 | LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> { | |
74b04a01 | 109 | | ^ |
9fa01778 | 110 | |
74b04a01 XL |
111 | error[E0747]: type provided when a lifetime was expected |
112 | --> $DIR/suggest-move-types.rs:48:71 | |
9fa01778 XL |
113 | | |
114 | LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U, V, 'a, 'b, 'c>> { | |
74b04a01 | 115 | | ^ |
9fa01778 | 116 | |
74b04a01 | 117 | error[E0747]: lifetime provided when a type was expected |
ba9703b0 | 118 | --> $DIR/suggest-move-types.rs:65:56 |
9fa01778 XL |
119 | | |
120 | LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=(), U, 'b, V, 'c>> { | |
74b04a01 XL |
121 | | ^^ |
122 | | | |
f035d41b XL |
123 | = note: lifetime arguments must be provided before type arguments |
124 | = help: reorder the arguments: lifetimes, then types: `<'a, 'b, 'c, T, U, V>` | |
9fa01778 | 125 | |
74b04a01 | 126 | error[E0747]: lifetime provided when a type was expected |
ba9703b0 | 127 | --> $DIR/suggest-move-types.rs:82:56 |
9fa01778 XL |
128 | | |
129 | LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, 'b, C=(), V, 'c>> { | |
74b04a01 XL |
130 | | ^^ |
131 | | | |
f035d41b XL |
132 | = note: lifetime arguments must be provided before type arguments |
133 | = help: reorder the arguments: lifetimes, then types: `<'a, 'b, 'c, T, U, V>` | |
9fa01778 XL |
134 | |
135 | error: aborting due to 12 previous errors | |
136 | ||
74b04a01 | 137 | For more information about this error, try `rustc --explain E0747`. |