Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
regions
/
regions-reborrow-from-shorter-mut-ref-mut-ref.rs
blob: 35aca8be25beb58351fa55c0175ed4878dd7a595 [
file
] [
log
] [
blame
]
// 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 mismatch [E0623]
}
fn
main
()
{
}