]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-reborrow-from-shorter-mut-ref-mut-ref.rs
CommitLineData
1a4d82fc 1// Issue #8624. Test for reborrowing with 3 levels, not just two.
223e47cc 2
1a4d82fc 3fn copy_borrowed_ptr<'a, 'b, 'c>(p: &'a mut &'b mut &'c mut isize) -> &'b mut isize {
04454e1e 4 &mut ***p
923072b8 5 //~^ ERROR lifetime may not live long enough
223e47cc
LB
6}
7
8fn main() {
9}