fork/rust

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

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

master
1.2 KiB41 linesraw
1error[E0308]: mismatched `self` parameter type
2  --> $DIR/explicit-self-lifetime-mismatch.rs:8:12
3   |
4LL |            Foo<'b,'a>
5   |            ^^^^^^^^^^ lifetime mismatch
6   |
7   = note: expected struct `Foo<'a, 'b>`
8              found struct `Foo<'b, 'a>`
9note: the lifetime `'b` as defined here...
10  --> $DIR/explicit-self-lifetime-mismatch.rs:6:9
11   |
12LL | impl<'a,'b> Foo<'a,'b> {
13   |         ^^
14note: ...does not necessarily outlive the lifetime `'a` as defined here
15  --> $DIR/explicit-self-lifetime-mismatch.rs:6:6
16   |
17LL | impl<'a,'b> Foo<'a,'b> {
18   |      ^^
19
20error[E0308]: mismatched `self` parameter type
21  --> $DIR/explicit-self-lifetime-mismatch.rs:8:12
22   |
23LL |            Foo<'b,'a>
24   |            ^^^^^^^^^^ lifetime mismatch
25   |
26   = note: expected struct `Foo<'a, 'b>`
27              found struct `Foo<'b, 'a>`
28note: the lifetime `'a` as defined here...
29  --> $DIR/explicit-self-lifetime-mismatch.rs:6:6
30   |
31LL | impl<'a,'b> Foo<'a,'b> {
32   |      ^^
33note: ...does not necessarily outlive the lifetime `'b` as defined here
34  --> $DIR/explicit-self-lifetime-mismatch.rs:6:9
35   |
36LL | impl<'a,'b> Foo<'a,'b> {
37   |         ^^
38
39error: aborting due to 2 previous errors
40
41For more information about this error, try `rustc --explain E0308`.