Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
borrowck
/
moved-value-in-closure-suggestion-64559.rs
blob: c13f91c082a3989927b36b7eae041bf96184ffa9 [
file
] [
log
] [
blame
]
// https://github.com/rust-lang/rust/issues/64559
fn
main
()
{
let
orig
=
vec
![
true
];
for
_val in orig
{}
let
_closure
=
||
orig
;
//~^ ERROR use of moved value: `orig`
}