]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/lifetime-before-type-params.stderr
Rollup merge of #88794 - sunfishcode:sunfishcode/try-clone, r=joshtriplett
[rust.git] / src / test / ui / generics / lifetime-before-type-params.stderr
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    |         ----^^--^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
6
7 error: lifetime parameters must be declared prior to type parameters
8   --> $DIR/lifetime-before-type-params.rs:4:18
9    |
10 LL | fn second<'a, T, 'b>() {}
11    |          --------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, T>`
12
13 error: lifetime parameters must be declared prior to type parameters
14   --> $DIR/lifetime-before-type-params.rs:6:16
15    |
16 LL | fn third<T, U, 'a>() {}
17    |         -------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T, U>`
18
19 error: lifetime parameters must be declared prior to type parameters
20   --> $DIR/lifetime-before-type-params.rs:8:18
21    |
22 LL | fn fourth<'a, T, 'b, U, 'c, V>() {}
23    |          --------^^-----^^---- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, 'c, T, U, V>`
24
25 error: aborting due to 4 previous errors
26