rust/tests/ui/issues/issue-12127.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
586 B
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error[E0382]: use of moved value: `f`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-12127.rs:11:9
2018-07-15 21:11:54 +00:00
|
LL | f();
| --- `f` moved due to this call
2018-07-15 21:11:54 +00:00
LL | f();
| ^ value used here after move
|
note: this value implements `FnOnce`, which causes it to be moved when called
--> $DIR/issue-12127.rs:10:9
|
LL | f();
| ^
2022-06-27 05:45:35 +00:00
= note: move occurs because `f` has type `[closure@$DIR/issue-12127.rs:8:24: 8:30]`, which does not implement the `Copy` trait
2018-07-15 21:11:54 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.