Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-move-in-irrefut-pat.rs
blob: f4f402dd96ab636ec8c1755620b924c3b344e8f3 [
file
] [
log
] [
blame
]
fn
with
<
F
>(
f
:
F
)
where F
:
FnOnce
(&
String
)
{}
fn
arg_item
(&
_x
:
&
String
)
{}
//~^ ERROR [E0507]
fn
arg_closure
()
{
with
(|&
_x
|
())
//~^ ERROR [E0507]
}
fn
let_pat
()
{
let
&
_x
=
&
"hi"
.
to_string
();
//~^ ERROR [E0507]
}
pub
fn
main
()
{}