1 error: lifetime parameters must be declared prior to type parameters
2 --> $DIR/lifetime-before-type-params.rs:2:13
4 LL | fn first<T, 'a, 'b>() {}
5 | ----^^--^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T>`
7 error: lifetime parameters must be declared prior to type parameters
8 --> $DIR/lifetime-before-type-params.rs:4:18
10 LL | fn second<'a, T, 'b>() {}
11 | --------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T>`
13 error: lifetime parameters must be declared prior to type parameters
14 --> $DIR/lifetime-before-type-params.rs:6:16
16 LL | fn third<T, U, 'a>() {}
17 | -------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, T, U>`
19 error: lifetime parameters must be declared prior to type parameters
20 --> $DIR/lifetime-before-type-params.rs:8:18
22 LL | fn fourth<'a, T, 'b, U, 'c, V>() {}
23 | --------^^-----^^---- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, 'c, T, U, V>`
25 error[E0601]: `main` function not found in crate `lifetime_before_type_params`
27 = note: consider adding a `main` function to `$DIR/lifetime-before-type-params.rs`
29 error: aborting due to 5 previous errors
31 For more information about this error, try `rustc --explain E0601`.