fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: unused `async` for function with no await statements 2 --> $DIR/unused_async.rs:13:5 3 | 4LL | / async fn async_block_await() { 5LL | | 6LL | | async { 7LL | | ready(()).await; 8LL | | }; 9LL | | } 10 | |_____^ 11 | 12 = help: consider removing the `async` from this function 13note: `await` used in an async block, which does not require the enclosing function to be `async` 14 --> $DIR/unused_async.rs:16:23 15 | 16LL | ready(()).await; 17 | ^^^^^ 18 = note: `-D clippy::unused-async` implied by `-D warnings` 19 = help: to override `-D warnings` add `#[allow(clippy::unused_async)]` 20 21error: unused `async` for function with no await statements 22 --> $DIR/unused_async.rs:46:5 23 | 24LL | async fn f3() {} 25 | ^^^^^^^^^^^^^^^^ 26 | 27 = help: consider removing the `async` from this function 28 29error: unused `async` for function with no await statements 30 --> $DIR/unused_async.rs:59:1 31 | 32LL | / async fn foo() -> i32 { 33LL | | 34LL | | 4 35LL | | } 36 | |_^ 37 | 38 = help: consider removing the `async` from this function 39 40error: unused `async` for function with no await statements 41 --> $DIR/unused_async.rs:71:5 42 | 43LL | / async fn unused(&self) -> i32 { 44LL | | 45LL | | 1 46LL | | } 47 | |_____^ 48 | 49 = help: consider removing the `async` from this function 50 51error: aborting due to 4 previous errors 52