2013-11-16 16:30:45 -06:00
|
|
|
// Issue #8624. Test for reborrowing with 3 levels, not just two.
|
|
|
|
|
2015-01-08 04:54:35 -06:00
|
|
|
fn copy_borrowed_ptr<'a, 'b, 'c>(p: &'a mut &'b mut &'c mut isize) -> &'b mut isize {
|
2022-04-19 05:56:18 -05:00
|
|
|
&mut ***p
|
2022-04-01 12:13:25 -05:00
|
|
|
//~^ ERROR lifetime may not live long enough
|
2013-11-16 16:30:45 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|