unreachable_patterns
emitted on _
that matches a local of uninhabited type (that is uninitialized)
#134733
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-unreachable_patterns
Lint: unreachable_patterns
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
(playground)
I expected to see this happen: the code compiler without warnings and successfully runs doing nothing.
Instead, this happened: a warning is emitted (the code compiles and runs as expected):
Meta
rustc version:
1.85.0-nightly (2024-12-23 bdc6b3de48646345549f)
The text was updated successfully, but these errors were encountered: