fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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