blob: ead448df930fe0d16a475109510b6906ece7c191 [file] [log] [blame]
error[E0623]: lifetime mismatch
--> $DIR/regions-reborrow-from-shorter-mut-ref-mut-ref.rs:4:5
|
LL | fn copy_borrowed_ptr<'a, 'b, 'c>(p: &'a mut &'b mut &'c 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