1 error: lifetime parameters must be declared prior to type or const parameters
2 --> $DIR/issue-14303.rs:1:18
4 LL | enum Enum<'a, T, 'b> {
5 | --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
7 error: lifetime parameters must be declared prior to type or const parameters
8 --> $DIR/issue-14303.rs:6:22
10 LL | struct Struct<'a, T, 'b> {
11 | --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
13 error: lifetime parameters must be declared prior to type or const parameters
14 --> $DIR/issue-14303.rs:11:20
16 LL | trait Trait<'a, T, 'b> {}
17 | --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
19 error: lifetime parameters must be declared prior to type or const parameters
20 --> $DIR/issue-14303.rs:14:15
22 LL | fn foo<'a, T, 'b>(x: &'a T) {}
23 | --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
25 error: lifetime parameters must be declared prior to type or const parameters
26 --> $DIR/issue-14303.rs:18:13
28 LL | impl<'a, T, 'b> Y<T> {}
29 | --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
31 error[E0747]: type provided when a lifetime was expected
32 --> $DIR/issue-14303.rs:30:37
34 LL | fn bar<'a, 'b, 'c, T>(x: bar::X<'a, T, 'b, 'c>) {}
37 error: aborting due to 6 previous errors
39 For more information about this error, try `rustc --explain E0747`.