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