|
1 |
| -error: lifetime parameters must be declared prior to type or const parameters |
| 1 | +error: lifetime parameters must be declared prior to type and const parameters |
2 | 2 | --> $DIR/issue-14303.rs:1:18
|
3 | 3 | |
|
4 | 4 | LL | enum Enum<'a, T, 'b> {
|
5 | 5 | | --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
|
6 | 6 |
|
7 |
| -error: lifetime parameters must be declared prior to type or const parameters |
| 7 | +error: lifetime parameters must be declared prior to type and const parameters |
8 | 8 | --> $DIR/issue-14303.rs:6:22
|
9 | 9 | |
|
10 | 10 | LL | struct Struct<'a, T, 'b> {
|
11 | 11 | | --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
|
12 | 12 |
|
13 |
| -error: lifetime parameters must be declared prior to type or const parameters |
| 13 | +error: lifetime parameters must be declared prior to type and const parameters |
14 | 14 | --> $DIR/issue-14303.rs:11:20
|
15 | 15 | |
|
16 | 16 | LL | trait Trait<'a, T, 'b> {}
|
17 | 17 | | --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
|
18 | 18 |
|
19 |
| -error: lifetime parameters must be declared prior to type or const parameters |
| 19 | +error: lifetime parameters must be declared prior to type and const parameters |
20 | 20 | --> $DIR/issue-14303.rs:14:15
|
21 | 21 | |
|
22 | 22 | LL | fn foo<'a, T, 'b>(x: &'a T) {}
|
23 | 23 | | --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
|
24 | 24 |
|
25 |
| -error: lifetime parameters must be declared prior to type or const parameters |
| 25 | +error: lifetime parameters must be declared prior to type and const parameters |
26 | 26 | --> $DIR/issue-14303.rs:18:13
|
27 | 27 | |
|
28 | 28 | LL | impl<'a, T, 'b> Y<T> {}
|
|
0 commit comments