Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
nll
/
issue-52663-span-decl-captured-variable.rs
blob: cd1f457a13064f0de9eb22b1dda56969c18c90d5 [
file
] [
log
] [
blame
]
fn
expect_fn
<
F
>(
f
:
F
)
where F
:
Fn
()
{
f
();
}
fn
main
()
{
{
let
x
=
(
vec
![
22
],
vec
![
44
]);
expect_fn
(||
drop
(
x
.
0
));
//~^ ERROR cannot move out of `x.0`, as `x` is a captured variable in an `Fn` closure [E0507]
}
}