]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-move-types.stderr
Move generic arg / param validation to `create_substs_for_generic_args`
[rust.git] / src / test / ui / suggestions / suggest-move-types.stderr
1 error: associated type bindings must be declared after generic parameters
2   --> $DIR/suggest-move-types.rs:28:20
3    |
4 LL | struct A<T, M: One<A=(), T>> {
5    |                    ----^^^
6    |                    |
7    |                    this associated type binding should be moved after the generic parameters
8
9 error: associated type bindings must be declared after generic parameters
10   --> $DIR/suggest-move-types.rs:34:37
11    |
12 LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
13    |                                     ----^^^^^^^
14    |                                     |
15    |                                     this associated type binding should be moved after the generic parameters
16
17 error: associated type bindings must be declared after generic parameters
18   --> $DIR/suggest-move-types.rs:41:28
19    |
20 LL | struct B<T, U, V, M: Three<A=(), B=(), C=(), T, U, V>> {
21    |                            ----^^----^^----^^^^^^^^^
22    |                            |     |     |
23    |                            |     |     this associated type binding should be moved after the generic parameters
24    |                            |     this associated type binding should be moved after the generic parameters
25    |                            this associated type binding should be moved after the generic parameters
26
27 error: associated type bindings must be declared after generic parameters
28   --> $DIR/suggest-move-types.rs:48:53
29    |
30 LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U, V, 'a, 'b, 'c>> {
31    |                                                     ----^^----^^----^^^^^^^^^^^^^^^^^^^^^
32    |                                                     |     |     |
33    |                                                     |     |     this associated type binding should be moved after the generic parameters
34    |                                                     |     this associated type binding should be moved after the generic parameters
35    |                                                     this associated type binding should be moved after the generic parameters
36
37 error: associated type bindings must be declared after generic parameters
38   --> $DIR/suggest-move-types.rs:57:28
39    |
40 LL | struct C<T, U, V, M: Three<T, A=(), B=(), C=(), U, V>> {
41    |                            ^^^----^^----^^----^^^^^^
42    |                               |     |     |
43    |                               |     |     this associated type binding should be moved after the generic parameters
44    |                               |     this associated type binding should be moved after the generic parameters
45    |                               this associated type binding should be moved after the generic parameters
46
47 error: associated type bindings must be declared after generic parameters
48   --> $DIR/suggest-move-types.rs:64:53
49    |
50 LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=(), U, 'b, V, 'c>> {
51    |                                                     ^^^^^^^----^^----^^----^^^^^^^^^^^^^^
52    |                                                            |     |     |
53    |                                                            |     |     this associated type binding should be moved after the generic parameters
54    |                                                            |     this associated type binding should be moved after the generic parameters
55    |                                                            this associated type binding should be moved after the generic parameters
56
57 error: associated type bindings must be declared after generic parameters
58   --> $DIR/suggest-move-types.rs:73:28
59    |
60 LL | struct D<T, U, V, M: Three<T, A=(), B=(), U, C=(), V>> {
61    |                            ^^^----^^----^^^^^----^^^
62    |                               |     |        |
63    |                               |     |        this associated type binding should be moved after the generic parameters
64    |                               |     this associated type binding should be moved after the generic parameters
65    |                               this associated type binding should be moved after the generic parameters
66
67 error: associated type bindings must be declared after generic parameters
68   --> $DIR/suggest-move-types.rs:80:53
69    |
70 LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, 'b, C=(), V, 'c>> {
71    |                                                     ^^^^^^^----^^----^^^^^^^^^----^^^^^^^
72    |                                                            |     |            |
73    |                                                            |     |            this associated type binding should be moved after the generic parameters
74    |                                                            |     this associated type binding should be moved after the generic parameters
75    |                                                            this associated type binding should be moved after the generic parameters
76
77 error[E0747]: type provided when a lifetime was expected
78   --> $DIR/suggest-move-types.rs:34:43
79    |
80 LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
81    |                                           ^
82
83 error[E0747]: type provided when a lifetime was expected
84   --> $DIR/suggest-move-types.rs:48:71
85    |
86 LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U, V, 'a, 'b, 'c>> {
87    |                                                                       ^
88
89 error[E0747]: lifetime provided when a type was expected
90   --> $DIR/suggest-move-types.rs:64:56
91    |
92 LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=(), U, 'b, V, 'c>> {
93    |                                                        ^^
94
95 error[E0747]: lifetime provided when a type was expected
96   --> $DIR/suggest-move-types.rs:80:56
97    |
98 LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, 'b, C=(), V, 'c>> {
99    |                                                        ^^
100
101 error: aborting due to 12 previous errors
102
103 For more information about this error, try `rustc --explain E0747`.