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();
|
2020-06-11 17:48:46 +00:00
|
|
|
| --- `f` moved due to this call
|
2018-07-15 21:11:54 +00:00
|
|
|
LL | f();
|
|
|
|
| ^ value used here after move
|
|
|
|
|
|
2020-06-11 17:48:46 +00:00
|
|
|
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`.
|