Sign in
fuchsia
/
third_party
/
rust
/
12307b3b08edee543a78fb9d4a837fbd6d6ac0fa
/
.
/
src
/
test
/
ui
/
suggestions
/
option-content-move2.rs
blob: 88e8a5b7aeef06e0293c4f52a2c4979b66e8f3b1 [
file
] [
log
] [
blame
]
struct
NotCopyable
;
fn
func
<
F
:
FnMut
()
->
H
,
H
:
FnMut
()>(
_
:
F
)
{}
fn
parse
()
{
let
mut
var
=
None
;
func
(||
{
// Shouldn't suggest `move ||.as_ref()` here
move
||
{
//~^ ERROR: cannot move out of `var`
var
=
Some
(
NotCopyable
);
}
});
}
fn
main
()
{}