fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
584 B17 linesraw
1error[E0382]: use of moved value: `tick`
2  --> $DIR/unboxed-closures-infer-fnonce-call-twice.rs:10:5
3   |
4LL |     tick();
5   |     ---- value moved here
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   |                             ^^^^^^^
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0382`.