#[non_exhaustive] variants are not detected to be redundant #65157
Labels
C-bug
Category: This is a bug.
F-non_exhaustive
`#![feature(non_exhaustive)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Say I have the following enum in crate
b
:And I match on it in crate
a
:The second branch is not detected to be unreachable. This is on current nightly; playground link (hacky).
The text was updated successfully, but these errors were encountered: