]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.rs
1 // Test that we are able to infer a suitable kind for this closure
2 // that is just called (`FnMut`).
7 let mut counter
: Vec
<i32> = Vec
::new();
8 let tick
= || mem
::drop(counter
);
10 tick(); //~ ERROR use of moved value: `tick`