Skip to content

Commit

Permalink
Rollup merge of #119410 - est31:fix_if_guard_unused, r=Nilstrieb
Browse files Browse the repository at this point in the history
Rename test to be more descriptive

As suggested in #119402 (comment)

r? ``@Nilstrieb``
  • Loading branch information
matthiaskrgr committed Dec 29, 2023
2 parents 7c5c948 + 740378c commit bfc1643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error: unused variable: `b`
--> $DIR/issue-119383.rs:6:24
--> $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
--> $DIR/issue-119383.rs:2:9
--> $DIR/issue-119383-if-let-guard.rs:2:9
|
LL | #![deny(unused_variables)]
| ^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit bfc1643

Please sign in to comment.