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