Incorrect "unreachable pattern" warning in Rust 1.50. #82012
Labels
A-exhaustiveness-checking
Relating to exhaustiveness / usefulness checking of patterns
C-bug
Category: This is a bug.
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-release
Relevant to the release subteam, which will review and decide on the PR/issue.
Milestone
This seems to be a new issue in Rust 1.50. The latest nightly does not have this issue.
playground
It prints
"A!"
without any error, but gives the following warning.some!('A')
is obviously reachable, otherwise it won't print"A!"
.The text was updated successfully, but these errors were encountered: