]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unused_async.stderr
Auto merge of #99099 - Stargateur:phantomdata_debug, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / unused_async.stderr
1 error: unused `async` for function with no await statements
2   --> $DIR/unused_async.rs:6:1
3    |
4 LL | / async fn foo() -> i32 {
5 LL | |     4
6 LL | | }
7    | |_^
8    |
9    = help: consider removing the `async` from this function
10    = note: `-D clippy::unused-async` implied by `-D warnings`
11
12 error: unused `async` for function with no await statements
13   --> $DIR/unused_async.rs:17:5
14    |
15 LL | /     async fn unused(&self) -> i32 {
16 LL | |         1
17 LL | |     }
18    | |_____^
19    |
20    = help: consider removing the `async` from this function
21
22 error: aborting due to 2 previous errors
23