2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-infer-not-param.rs:15:54
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
LL | fn take_direct<'a,'b>(p: Direct<'a>) -> Direct<'b> { p } //~ ERROR mismatched types
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ lifetime mismatch
|
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
= note: expected type `Direct<'b>`
|
|
|
|
found type `Direct<'a>`
|
2018-12-25 09:56:47 -06:00
|
|
|
note: the lifetime 'a as defined on the function body at 15:16...
|
|
|
|
--> $DIR/regions-infer-not-param.rs:15:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
LL | fn take_direct<'a,'b>(p: Direct<'a>) -> Direct<'b> { p } //~ ERROR mismatched types
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^
|
2018-12-25 09:56:47 -06:00
|
|
|
note: ...does not necessarily outlive the lifetime 'b as defined on the function body at 15:19
|
|
|
|
--> $DIR/regions-infer-not-param.rs:15:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
LL | fn take_direct<'a,'b>(p: Direct<'a>) -> Direct<'b> { p } //~ ERROR mismatched types
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-infer-not-param.rs:19:63
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
LL | fn take_indirect2<'a,'b>(p: Indirect2<'a>) -> Indirect2<'b> { p } //~ ERROR mismatched types
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ lifetime mismatch
|
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
= note: expected type `Indirect2<'b>`
|
|
|
|
found type `Indirect2<'a>`
|
2018-12-25 09:56:47 -06:00
|
|
|
note: the lifetime 'a as defined on the function body at 19:19...
|
|
|
|
--> $DIR/regions-infer-not-param.rs:19:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
LL | fn take_indirect2<'a,'b>(p: Indirect2<'a>) -> Indirect2<'b> { p } //~ ERROR mismatched types
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^
|
2018-12-25 09:56:47 -06:00
|
|
|
note: ...does not necessarily outlive the lifetime 'b as defined on the function body at 19:22
|
|
|
|
--> $DIR/regions-infer-not-param.rs:19:22
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
LL | fn take_indirect2<'a,'b>(p: Indirect2<'a>) -> Indirect2<'b> { p } //~ ERROR mismatched types
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-infer-not-param.rs:19:63
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
LL | fn take_indirect2<'a,'b>(p: Indirect2<'a>) -> Indirect2<'b> { p } //~ ERROR mismatched types
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ lifetime mismatch
|
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
= note: expected type `Indirect2<'b>`
|
|
|
|
found type `Indirect2<'a>`
|
2018-12-25 09:56:47 -06:00
|
|
|
note: the lifetime 'b as defined on the function body at 19:22...
|
|
|
|
--> $DIR/regions-infer-not-param.rs:19:22
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
LL | fn take_indirect2<'a,'b>(p: Indirect2<'a>) -> Indirect2<'b> { p } //~ ERROR mismatched types
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^
|
2018-12-25 09:56:47 -06:00
|
|
|
note: ...does not necessarily outlive the lifetime 'a as defined on the function body at 19:19
|
|
|
|
--> $DIR/regions-infer-not-param.rs:19:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
LL | fn take_indirect2<'a,'b>(p: Indirect2<'a>) -> Indirect2<'b> { p } //~ ERROR mismatched types
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|