1 error[E0308]: method not compatible with trait
2 --> $DIR/matching-lifetimes.rs:14:5
4 LL | fn foo(x: Foo<'b,'a>) {
5 | ^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
7 = note: expected fn pointer `fn(Foo<'a, 'b>)`
8 found fn pointer `fn(Foo<'b, 'a>)`
9 note: the lifetime `'b` as defined on the impl at 13:9...
10 --> $DIR/matching-lifetimes.rs:13:9
12 LL | impl<'a,'b> Tr for Foo<'a,'b> {
14 note: ...does not necessarily outlive the lifetime `'a` as defined on the impl at 13:6
15 --> $DIR/matching-lifetimes.rs:13:6
17 LL | impl<'a,'b> Tr for Foo<'a,'b> {
20 error[E0308]: method not compatible with trait
21 --> $DIR/matching-lifetimes.rs:14:5
23 LL | fn foo(x: Foo<'b,'a>) {
24 | ^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
26 = note: expected fn pointer `fn(Foo<'a, 'b>)`
27 found fn pointer `fn(Foo<'b, 'a>)`
28 note: the lifetime `'a` as defined on the impl at 13:6...
29 --> $DIR/matching-lifetimes.rs:13:6
31 LL | impl<'a,'b> Tr for Foo<'a,'b> {
33 note: ...does not necessarily outlive the lifetime `'b` as defined on the impl at 13:9
34 --> $DIR/matching-lifetimes.rs:13:9
36 LL | impl<'a,'b> Tr for Foo<'a,'b> {
39 error: aborting due to 2 previous errors
41 For more information about this error, try `rustc --explain E0308`.