@@ -6,16 +6,16 @@ LL | fn foo(x: Foo<'b,'a>) {
6
6
|
7
7
= note: expected signature `fn(Foo<'a, 'b>)`
8
8
found signature `fn(Foo<'b, 'a>)`
9
- note: the lifetime `'b` as defined here...
10
- --> $DIR/matching-lifetimes.rs:13:9
11
- |
12
- LL | impl<'a,'b> Tr for Foo<'a,'b> {
13
- | ^^
14
- note: ...does not necessarily outlive the lifetime `'a` as defined here
9
+ note: the lifetime `'a` as defined here...
15
10
--> $DIR/matching-lifetimes.rs:13:6
16
11
|
17
12
LL | impl<'a,'b> Tr for Foo<'a,'b> {
18
13
| ^^
14
+ note: ...does not necessarily outlive the lifetime `'b` as defined here
15
+ --> $DIR/matching-lifetimes.rs:13:9
16
+ |
17
+ LL | impl<'a,'b> Tr for Foo<'a,'b> {
18
+ | ^^
19
19
20
20
error[E0308]: method not compatible with trait
21
21
--> $DIR/matching-lifetimes.rs:14:5
@@ -25,16 +25,16 @@ LL | fn foo(x: Foo<'b,'a>) {
25
25
|
26
26
= note: expected signature `fn(Foo<'a, 'b>)`
27
27
found signature `fn(Foo<'b, 'a>)`
28
- note: the lifetime `'a` as defined here...
29
- --> $DIR/matching-lifetimes.rs:13:6
30
- |
31
- LL | impl<'a,'b> Tr for Foo<'a,'b> {
32
- | ^^
33
- note: ...does not necessarily outlive the lifetime `'b` as defined here
28
+ note: the lifetime `'b` as defined here...
34
29
--> $DIR/matching-lifetimes.rs:13:9
35
30
|
36
31
LL | impl<'a,'b> Tr for Foo<'a,'b> {
37
32
| ^^
33
+ note: ...does not necessarily outlive the lifetime `'a` as defined here
34
+ --> $DIR/matching-lifetimes.rs:13:6
35
+ |
36
+ LL | impl<'a,'b> Tr for Foo<'a,'b> {
37
+ | ^^
38
38
39
39
error: aborting due to 2 previous errors
40
40
0 commit comments