1 error[E0382]: use of moved value: `f`
2 --> $DIR/issue-12127.rs:11:9
5 | --- `f` moved due to this call
7 | ^ value used here after move
9 note: this value implements `FnOnce`, which causes it to be moved when called
10 --> $DIR/issue-12127.rs:10:9
14 = note: move occurs because `f` has type `[closure@$DIR/issue-12127.rs:8:24: 8:41]`, which does not implement the `Copy` trait
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0382`.