]> git.lizzy.rs Git - rust.git/blob - tests/ui/let_underscore_future.stderr
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
[rust.git] / tests / ui / let_underscore_future.stderr
1 error: non-binding `let` on a future
2   --> $DIR/let_underscore_future.rs:14:5
3    |
4 LL |     let _ = some_async_fn();
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = help: consider awaiting the future or dropping explicitly with `std::mem::drop`
8    = note: `-D clippy::let-underscore-future` implied by `-D warnings`
9
10 error: non-binding `let` on a future
11   --> $DIR/let_underscore_future.rs:15:5
12    |
13 LL |     let _ = custom();
14    |     ^^^^^^^^^^^^^^^^^
15    |
16    = help: consider awaiting the future or dropping explicitly with `std::mem::drop`
17
18 error: non-binding `let` on a future
19   --> $DIR/let_underscore_future.rs:19:5
20    |
21 LL |     let _ = future;
22    |     ^^^^^^^^^^^^^^^
23    |
24    = help: consider awaiting the future or dropping explicitly with `std::mem::drop`
25
26 error: aborting due to 3 previous errors
27