]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0382]: use of moved value: `f` |
0731742a | 2 | --> $DIR/issue-12127.rs:11:9 |
8faf50e0 XL |
3 | | |
4 | LL | f(); | |
f035d41b | 5 | | --- `f` moved due to this call |
8faf50e0 XL |
6 | LL | f(); |
7 | | ^ value used here after move | |
8 | | | |
f035d41b XL |
9 | note: this value implements `FnOnce`, which causes it to be moved when called |
10 | --> $DIR/issue-12127.rs:10:9 | |
11 | | | |
12 | LL | f(); | |
13 | | ^ | |
1b1a35ee | 14 | = note: move occurs because `f` has type `[closure@$DIR/issue-12127.rs:8:24: 8:41]`, which does not implement the `Copy` trait |
8faf50e0 XL |
15 | |
16 | error: aborting due to previous error | |
17 | ||
18 | For more information about this error, try `rustc --explain E0382`. |