rust/src/test/ui/regions/regions-reborrow-from-shorter-mut-ref.stderr
2019-04-18 13:29:28 -04:00

13 lines
515 B
Plaintext

error[E0623]: lifetime mismatch
--> $DIR/regions-reborrow-from-shorter-mut-ref.rs:6:5
|
LL | fn copy_borrowed_ptr<'a, 'b>(p: &'a mut &'b mut isize) -> &'b mut isize {
| --------------------- -------------
| |
| this parameter and the return type are declared with different lifetimes...
LL | &mut **p
| ^^^^^^^^ ...but data from `p` is returned here
error: aborting due to previous error