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();
|
2020-06-11 13:48:46 -04:00
|
|
|
| --- `f` moved due to this call
|
2018-07-15 14:11:54 -07:00
|
|
|
LL | f();
|
|
|
|
| ^ value used here after move
|
|
|
|
|
|
2020-06-11 13:48:46 -04:00
|
|
|
note: this value implements `FnOnce`, which causes it to be moved when called
|
|
|
|
--> $DIR/issue-12127.rs:10:9
|
|
|
|
|
|
|
|
|
LL | f();
|
|
|
|
| ^
|
2023-09-09 08:36:50 +02: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 14:11:54 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|