Sign in
fuchsia
/
third_party
/
rust
/
02856110968903bf50a32184db200ccd9b6cc8b6
/
.
/
tests
/
ui
/
issues
/
issue-61623.rs
blob: 82df50d9dc34f0c4e30438441b2b017ed3aa4fa7 [
file
]
fn
f1
<
'a>(_: &'
a
mut
())
{}
fn
f2
<
P
>(
_
:
P
,
_
:
())
{}
fn
f3
<
'a>(x: &'
a
((),
&
'
a
mut
()))
{
f2
(||
x
.
0
,
f1
(
x
.
1
))
//~^ ERROR cannot borrow `*x.1` as mutable, as it is behind a `&` reference
}
fn
main
()
{}