1 // Issue #8624. Tests that reborrowing the contents of an `&'b mut`
2 // pointer which is backed by another `&'a mut` can only be done
3 // for `'a` (which must be a sublifetime of `'b`).
5 fn copy_borrowed_ptr<'a, 'b>(p: &'a mut &'b mut isize) -> &'b mut isize {
7 //~^ ERROR lifetime may not live long enough
13 let z = copy_borrowed_ptr(&mut y);