Incorrect unused_variables diagnostic for or-ed patterns #67691
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
F-or_patterns
`#![feature(or_patterns)]`
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
With rustc 1.42.0-nightly (0de96d3 2019-12-19):
For the following code:
I get the following diagnostic:
Instead of:
The text was updated successfully, but these errors were encountered: