]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-14303-path.stderr
Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavus
[rust.git] / src / test / ui / parser / issue-14303-path.stderr
1 error: lifetime parameters must be declared prior to type parameters
2   --> $DIR/issue-14303-path.rs:10:40
3    |
4 LL | fn bar<'a, 'b, 'c, T>(x: foo::X<'a, T, 'b, 'c>) {}
5    |                                        ^^  ^^ must be declared prior to type parameters
6    |                                        |
7    |                                        must be declared prior to type parameters
8 help: move the lifetime parameters prior to the first type parameter
9    |
10 LL | fn bar<'a, 'b, 'c, T>(x: foo::X<'a, 'b, 'c, T>) {}
11    |                                     ^^^ ^^^ --
12
13 error: aborting due to previous error
14