Sign in
fuchsia
/
third_party
/
rust
/
541ad45a83482e3132c75fbbc55fb2afc03a6031
/
.
/
src
/
test
/
run-pass
/
issues
/
issue-16671.rs
blob: 81a6b669b70ef328fdccd0d0864e50824603f766 [
file
] [
log
] [
blame
]
// run-pass
//compile-flags: -Z borrowck=compare
#![
deny
(
warnings
)]
fn
foo
<
F
:
FnOnce
()>(
_f
:
F
)
{
}
fn
main
()
{
let
mut
var
=
Vec
::
new
();
foo
(
move
||
{
var
.
push
(
1
);
});
}