Sync from rust 730d5d4095
This commit is contained in:
commit
65369af4df
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue