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