summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/unused_async.stderr
blob: 8d9b72c4886c28f20fcf5468c91b4ef7f7075d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
error: unused `async` for function with no await statements
  --> $DIR/unused_async.rs:13:5
   |
LL | /     async fn async_block_await() {
LL | |         async {
LL | |             ready(()).await;
LL | |         };
LL | |     }
   | |_____^
   |
   = help: consider removing the `async` from this function
note: `await` used in an async block, which does not require the enclosing function to be `async`
  --> $DIR/unused_async.rs:15:23
   |
LL |             ready(()).await;
   |                       ^^^^^
   = note: `-D clippy::unused-async` implied by `-D warnings`

error: unused `async` for function with no await statements
  --> $DIR/unused_async.rs:45:5
   |
LL |     async fn f3() {}
   |     ^^^^^^^^^^^^^^^^
   |
   = help: consider removing the `async` from this function

error: unused `async` for function with no await statements
  --> $DIR/unused_async.rs:57:1
   |
LL | / async fn foo() -> i32 {
LL | |     4
LL | | }
   | |_^
   |
   = help: consider removing the `async` from this function

error: unused `async` for function with no await statements
  --> $DIR/unused_async.rs:68:5
   |
LL | /     async fn unused(&self) -> i32 {
LL | |         1
LL | |     }
   | |_____^
   |
   = help: consider removing the `async` from this function

error: aborting due to 4 previous errors