]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-12127.stderr
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-12127.stderr
1 error[E0382]: use of moved value: `f`
2 --> $DIR/issue-12127.rs:11:9
3 |
4 LL | f();
5 | --- `f` moved due to this call
6 LL | f();
7 | ^ value used here after move
8 |
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 | ^
14 = note: move occurs because `f` has type `[closure@$DIR/issue-12127.rs:8:24: 8:41]`, which does not implement the `Copy` trait
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0382`.