mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
aa8a82ec26
---- UPDATE: add async block into test. FIX: no_effect Fixed asynchronous function parameter names with underscores so that warnings are not displayed when underscores are added to parameter names ADD: test case
29 lines
830 B
Text
29 lines
830 B
Text
error: binding to `_` prefixed variable with no side-effect
|
|
--> tests/ui/no_effect_async_fn.rs:20:17
|
|
|
|
|
LL | let _c = 0;
|
|
| ^^
|
|
|
|
|
= note: `-D clippy::no-effect-underscore-binding` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::no_effect_underscore_binding)]`
|
|
|
|
error: binding to `_` prefixed variable with no side-effect
|
|
--> tests/ui/no_effect_async_fn.rs:13:13
|
|
|
|
|
LL | let _a = 0;
|
|
| ^^
|
|
|
|
error: binding to `_` prefixed variable with no side-effect
|
|
--> tests/ui/no_effect_async_fn.rs:39:13
|
|
|
|
|
LL | let _c = 0;
|
|
| ^^
|
|
|
|
error: binding to `_` prefixed variable with no side-effect
|
|
--> tests/ui/no_effect_async_fn.rs:32:9
|
|
|
|
|
LL | let _a = 0;
|
|
| ^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|