fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: `()` is not a future 2 --> $DIR/unnecessary-await.rs:9:11 3 | 4LL | boo().await; 5 | ----- ^^^^^ `()` is not a future 6 | | 7 | this call returns `()` 8 | 9 = help: the trait `Future` is not implemented for `()` 10 = note: () must be a future or must implement `IntoFuture` to be awaited 11 = note: required for `()` to implement `IntoFuture` 12help: remove the `.await` 13 | 14LL - boo().await; 15LL + boo(); 16 | 17help: alternatively, consider making `fn boo` asynchronous 18 | 19LL | async fn boo() {} 20 | +++++ 21 22error[E0277]: `()` is not a future 23 --> $DIR/unnecessary-await.rs:28:10 24 | 25LL | e!().await; 26 | -^^^^^ 27 | || 28 | |`()` is not a future 29 | help: remove the `.await` 30 | 31 = help: the trait `Future` is not implemented for `()` 32 = note: () must be a future or must implement `IntoFuture` to be awaited 33 = note: required for `()` to implement `IntoFuture` 34 35error[E0277]: `()` is not a future 36 --> $DIR/unnecessary-await.rs:22:15 37 | 38LL | $expr.await 39 | ^^^^^ 40 | | 41 | `()` is not a future 42 | remove the `.await` 43... 44LL | f!(()); 45 | ------ in this macro invocation 46 | 47 = help: the trait `Future` is not implemented for `()` 48 = note: () must be a future or must implement `IntoFuture` to be awaited 49 = note: required for `()` to implement `IntoFuture` 50 = note: this error originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info) 51 52error: aborting due to 3 previous errors 53 54For more information about this error, try `rustc --explain E0277`.