rust/tests/ui/lint/unused/issue-119383-if-let-guard.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
416 B
Plaintext
Raw Normal View History

error: unused variable: `b`
2023-12-29 13:48:52 +01:00
--> $DIR/issue-119383-if-let-guard.rs:6:24
|
LL | () if let Some(b) = Some(()) => {}
| ^ help: if this is intentional, prefix it with an underscore: `_b`
|
note: the lint level is defined here
2023-12-29 13:48:52 +01:00
--> $DIR/issue-119383-if-let-guard.rs:2:9
|
LL | #![deny(unused_variables)]
| ^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error