]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-12127.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-12127.stderr
CommitLineData
8faf50e0 1error[E0382]: use of moved value: `f`
0731742a 2 --> $DIR/issue-12127.rs:11:9
8faf50e0
XL
3 |
4LL | f();
f035d41b 5 | --- `f` moved due to this call
8faf50e0
XL
6LL | f();
7 | ^ value used here after move
8 |
f035d41b
XL
9note: this value implements `FnOnce`, which causes it to be moved when called
10 --> $DIR/issue-12127.rs:10:9
11 |
12LL | 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
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0382`.