1error[E0382]: use of moved value: `tick` 2 --> $DIR/unboxed-closures-infer-fnonce-call-twice.rs:10:5 3 | 4LL | tick(); 5 | ------ `tick` moved due to this call 6LL | tick(); 7 | ^^^^ value used here after move 8 | 9note: closure cannot be invoked more than once because it moves the variable `counter` out of its environment 10 --> $DIR/unboxed-closures-infer-fnonce-call-twice.rs:8:29 11 | 12LL | let tick = || mem::drop(counter); 13 | ^^^^^^^ 14note: this value implements `FnOnce`, which causes it to be moved when called 15 --> $DIR/unboxed-closures-infer-fnonce-call-twice.rs:9:5 16 | 17LL | tick(); 18 | ^^^^ 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0382`. 23