|
1 | 1 | error: lifetime parameters must be declared prior to type parameters |
2 | 2 | --> $DIR/suggest-move-lifetimes.rs:1:13 |
3 | 3 | | |
4 | | -LL | struct A<T, 'a> { |
| 4 | +LL | struct A<T, 'a> { //~ ERROR lifetime parameters must be declared |
5 | 5 | | ^^ |
6 | 6 | help: move the lifetime parameter prior to the first type parameter |
7 | 7 | | |
8 | | -LL | struct A<'a, T> { |
| 8 | +LL | struct A<'a, T> { //~ ERROR lifetime parameters must be declared |
9 | 9 | | ^^^ -- |
10 | 10 |
|
11 | 11 | error: lifetime parameters must be declared prior to type parameters |
12 | 12 | --> $DIR/suggest-move-lifetimes.rs:5:13 |
13 | 13 | | |
14 | | -LL | struct B<T, 'a, U> { |
| 14 | +LL | struct B<T, 'a, U> { //~ ERROR lifetime parameters must be declared |
15 | 15 | | ^^ |
16 | 16 | help: move the lifetime parameter prior to the first type parameter |
17 | 17 | | |
18 | | -LL | struct B<'a, T, U> { |
| 18 | +LL | struct B<'a, T, U> { //~ ERROR lifetime parameters must be declared |
19 | 19 | | ^^^ -- |
20 | 20 |
|
21 | 21 | error: lifetime parameters must be declared prior to type parameters |
22 | 22 | --> $DIR/suggest-move-lifetimes.rs:10:16 |
23 | 23 | | |
24 | | -LL | struct C<T, U, 'a> { |
| 24 | +LL | struct C<T, U, 'a> { //~ ERROR lifetime parameters must be declared |
25 | 25 | | ^^ |
26 | 26 | help: move the lifetime parameter prior to the first type parameter |
27 | 27 | | |
28 | | -LL | struct C<'a, T, U> { |
| 28 | +LL | struct C<'a, T, U> { //~ ERROR lifetime parameters must be declared |
29 | 29 | | ^^^ -- |
30 | 30 |
|
31 | 31 | error: lifetime parameters must be declared prior to type parameters |
32 | 32 | --> $DIR/suggest-move-lifetimes.rs:15:16 |
33 | 33 | | |
34 | | -LL | struct D<T, U, 'a, 'b, V, 'c> { |
| 34 | +LL | struct D<T, U, 'a, 'b, V, 'c> { //~ ERROR lifetime parameters must be declared |
35 | 35 | | ^^ ^^ ^^ |
36 | 36 | help: move the lifetime parameter prior to the first type parameter |
37 | 37 | | |
38 | | -LL | struct D<'a, 'b, 'c, T, U, V> { |
| 38 | +LL | struct D<'a, 'b, 'c, T, U, V> { //~ ERROR lifetime parameters must be declared |
39 | 39 | | ^^^ ^^^ ^^^ --- |
40 | 40 |
|
41 | 41 | error: aborting due to 4 previous errors |
|
0 commit comments