"Unreachable pattern" warning could be an error #47811
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Why is "unreachable pattern" a warning and not an error? I found some discussion in the PR: #19115 but that was in 2014.
I'm specially concerned about the following use case: Playground
That code throws 8 warnings at me, but I would prefer it to not compile. I also found a similar problem in stackoverflow. I think it's important to make this a clear error so beginners don't get confused.
The text was updated successfully, but these errors were encountered: