I am programming in rust on IntelliJ IDEA, when i run on IntelliJ IDEA i can compile whit out Problems , but when i run rustc main.rs i got this error :
rustc main.rs
error: expected one of !, ), ,, ., ::, ?, {, or an operator, found keyword move
--> main.rs:20:41
|
20 | async_std::task::block_on(async move {
| ^^^^ expected one of 8 possible tokens
error: aborting due to previous error