rust/tests/ui/no_effect_async_fn.stderr
taiga.watanabe aa8a82ec26 FIX: issue-12279
----
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
2024-02-21 23:26:29 +09:00

30 lines
830 B
Plaintext

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