This commit is contained in:
bjorn3 2024-08-11 11:44:15 +00:00
commit 65369af4df

View File

@ -585,6 +585,7 @@ pub enum E2<X> {
V4,
}
#[allow(unreachable_patterns)]
fn check_niche_behavior() {
if let E1::V2 { .. } = (E1::V1 { f: true }) {
intrinsics::abort();