2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: method not compatible with trait
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-matching-lifetimes.rs:14:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | fn foo(x: Foo<'b,'a>) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected fn pointer `fn(Foo<'a, 'b>)`
|
|
|
|
found fn pointer `fn(Foo<'b, 'a>)`
|
2019-10-10 18:58:35 -05:00
|
|
|
note: the lifetime `'b` as defined on the impl at 13:9...
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-matching-lifetimes.rs:13:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl<'a,'b> Tr for Foo<'a,'b> {
|
|
|
|
| ^^
|
2019-10-10 18:58:35 -05:00
|
|
|
note: ...does not necessarily outlive the lifetime `'a` as defined on the impl at 13:6
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-matching-lifetimes.rs:13:6
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl<'a,'b> Tr for Foo<'a,'b> {
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0308]: method not compatible with trait
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-matching-lifetimes.rs:14:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | fn foo(x: Foo<'b,'a>) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected fn pointer `fn(Foo<'a, 'b>)`
|
|
|
|
found fn pointer `fn(Foo<'b, 'a>)`
|
2019-10-10 18:58:35 -05:00
|
|
|
note: the lifetime `'a` as defined on the impl at 13:6...
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-matching-lifetimes.rs:13:6
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl<'a,'b> Tr for Foo<'a,'b> {
|
|
|
|
| ^^
|
2019-10-10 18:58:35 -05:00
|
|
|
note: ...does not necessarily outlive the lifetime `'b` as defined on the impl at 13:9
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-matching-lifetimes.rs:13:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl<'a,'b> Tr for Foo<'a,'b> {
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|