1 error[E0382]: use of moved value: `blk`
2 --> $DIR/once-cant-call-twice-on-heap.rs:9:5
4 LL | fn foo<F:FnOnce()>(blk: F) {
5 | -- --- move occurs because `blk` has type `F`, which does not implement the `Copy` trait
7 | help: consider adding a `Copy` constraint to this type argument: `F: Copy +`
11 | ^^^ value used here after move
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0382`.