blob: 57871b098376a4a85628e6f3333ca67c148fcccd (
plain)
1
2
3
4
5
6
7
8
9
|
// Issue #8624. Test for reborrowing with 3 levels, not just two.
fn copy_borrowed_ptr<'a, 'b, 'c>(p: &'a mut &'b mut &'c mut isize) -> &'b mut isize {
&mut ***p
//~^ ERROR lifetime may not live long enough
}
fn main() {
}
|