2017-11-22 17:39:46 -05:00
|
|
|
warning: not reporting region error due to -Znll
|
|
|
|
--> $DIR/region-lbr1-does-not-outlive-ebr2.rs:19:5
|
|
|
|
|
|
|
|
|
19 | &*x
|
|
|
|
| ^^^
|
|
|
|
|
2017-12-12 09:06:35 -05:00
|
|
|
error[E0623]: lifetime mismatch
|
2017-11-22 17:39:46 -05:00
|
|
|
--> $DIR/region-lbr1-does-not-outlive-ebr2.rs:19:5
|
|
|
|
|
|
2017-12-12 09:06:35 -05:00
|
|
|
18 | fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> &'b u32 {
|
|
|
|
| ------- -------
|
|
|
|
| |
|
|
|
|
| this parameter and the return type are declared with different lifetimes...
|
2017-11-22 17:39:46 -05:00
|
|
|
19 | &*x
|
2017-12-12 09:06:35 -05:00
|
|
|
| ^^^ ...but data from `x` is returned here
|
2017-11-22 17:39:46 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0623"
|