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 14:11:54 -07:00
error[E0382]: use of moved value: `f`
2018-12-25 08:56:47 -07:00
--> $DIR/issue-12127.rs:11:9
2018-07-15 14:11:54 -07:00
|
LL | f();
| --- `f` moved due to this call
2018-07-15 14:11:54 -07: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();
| ^
= 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 14:11:54 -07:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.