]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-move-types.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / suggestions / suggest-move-types.stderr
1 error: generic arguments must come before the first constraint
2   --> $DIR/suggest-move-types.rs:26:26
3    |
4 LL | struct A<T, M: One<A=(), T>> {
5    |                    ----  ^ generic argument
6    |                    |
7    |                    constraint
8    |
9 help: move the constraint after the generic argument
10    |
11 LL | struct A<T, M: One<T, A = ()>> {
12    |                   ~~~~~~~~~~~
13
14 error: generic arguments must come before the first constraint
15   --> $DIR/suggest-move-types.rs:33:43
16    |
17 LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
18    |                                     ----  ^  ^^ generic arguments
19    |                                     |
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    |                                    ~~~~~~~~~~~~~~~
26
27 error: generic arguments must come before the first constraint
28   --> $DIR/suggest-move-types.rs:40:46
29    |
30 LL | struct B<T, U, V, M: Three<A=(), B=(), C=(), T, U, V>> {
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    |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39
40 error: generic arguments must come before the first constraint
41   --> $DIR/suggest-move-types.rs:48:71
42    |
43 LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U, V, 'a, 'b, 'c>> {
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    |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52
53 error: generic arguments must come before the first constraint
54   --> $DIR/suggest-move-types.rs:57:28
55    |
56 LL | struct C<T, U, V, M: Three<T, A=(), B=(), C=(), U, V>> {
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    |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
65
66 error: generic arguments must come before the first constraint
67   --> $DIR/suggest-move-types.rs:65:53
68    |
69 LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=(), U, 'b, V, 'c>> {
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    |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
78
79 error: generic arguments must come before the first constraint
80   --> $DIR/suggest-move-types.rs:74:28
81    |
82 LL | struct D<T, U, V, M: Three<T, A=(), B=(), U, C=(), V>> {
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    |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91
92 error: generic arguments must come before the first constraint
93   --> $DIR/suggest-move-types.rs:82:53
94    |
95 LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, 'b, C=(), V, 'c>> {
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    |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104
105 error[E0747]: type provided when a lifetime was expected
106   --> $DIR/suggest-move-types.rs:33:43
107    |
108 LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
109    |                                           ^
110
111 error[E0747]: type provided when a lifetime was expected
112   --> $DIR/suggest-move-types.rs:48:71
113    |
114 LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U, V, 'a, 'b, 'c>> {
115    |                                                                       ^
116
117 error[E0747]: lifetime provided when a type was expected
118   --> $DIR/suggest-move-types.rs:65:56
119    |
120 LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=(), U, 'b, V, 'c>> {
121    |                                                        ^^
122    |
123    = note: lifetime arguments must be provided before type arguments
124    = help: reorder the arguments: lifetimes, then type and consts: `<'a, 'b, 'c, T, U, V>`
125
126 error[E0747]: lifetime provided when a type was expected
127   --> $DIR/suggest-move-types.rs:82:56
128    |
129 LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, 'b, C=(), V, 'c>> {
130    |                                                        ^^
131    |
132    = note: lifetime arguments must be provided before type arguments
133    = help: reorder the arguments: lifetimes, then type and consts: `<'a, 'b, 'c, T, U, V>`
134
135 error: aborting due to 12 previous errors
136
137 For more information about this error, try `rustc --explain E0747`.