|
| 1 | +error: lifetime parameters must be declared prior to type parameters |
| 2 | + --> $DIR/lifetime-before-type-params.rs:2:13 |
| 3 | + | |
| 4 | +LL | fn first<T, 'a, 'b>() {} |
| 5 | + | ^^ ^^ |
| 6 | +help: move the lifetime parameter prior to the first type parameter |
| 7 | + | |
| 8 | +LL | fn first<'a, 'b, T>() {} |
| 9 | + | ^^^ ^^^ -- |
| 10 | + |
| 11 | +error: lifetime parameters must be declared prior to type parameters |
| 12 | + --> $DIR/lifetime-before-type-params.rs:4:18 |
| 13 | + | |
| 14 | +LL | fn second<'a, T, 'b>() {} |
| 15 | + | ^^ |
| 16 | +help: move the lifetime parameter prior to the first type parameter |
| 17 | + | |
| 18 | +LL | fn second<'a, 'b, T>() {} |
| 19 | + | ^^^ -- |
| 20 | + |
| 21 | +error: lifetime parameters must be declared prior to type parameters |
| 22 | + --> $DIR/lifetime-before-type-params.rs:6:16 |
| 23 | + | |
| 24 | +LL | fn third<T, U, 'a>() {} |
| 25 | + | ^^ |
| 26 | +help: move the lifetime parameter prior to the first type parameter |
| 27 | + | |
| 28 | +LL | fn third<'a, T, U>() {} |
| 29 | + | ^^^ -- |
| 30 | + |
| 31 | +error: lifetime parameters must be declared prior to type parameters |
| 32 | + --> $DIR/lifetime-before-type-params.rs:8:18 |
| 33 | + | |
| 34 | +LL | fn fourth<'a, T, 'b, U, 'c, V>() {} |
| 35 | + | ^^ ^^ |
| 36 | +help: move the lifetime parameter prior to the first type parameter |
| 37 | + | |
| 38 | +LL | fn fourth<'a, 'b, 'c, T, U, V>() {} |
| 39 | + | ^^^ ^^^ -- -- |
| 40 | + |
| 41 | +error[E0601]: `main` function not found in crate `lifetime_before_type_params` |
| 42 | + | |
| 43 | + = note: consider adding a `main` function to `$DIR/lifetime-before-type-params.rs` |
| 44 | + |
| 45 | +error: aborting due to 5 previous errors |
| 46 | + |
| 47 | +For more information about this error, try `rustc --explain E0601`. |
0 commit comments