mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
10 lines
233 B
Rust
10 lines
233 B
Rust
// 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() {
|
|
}
|