Rustup to rustc 1.45.0-nightly (56daaf669
2020-06-03)
This commit is contained in:
parent
1e70c51f60
commit
648b634e21
9 changed files with 35 additions and 32 deletions
|
@ -414,10 +414,10 @@ pub enum E2<X> {
|
|||
|
||||
fn check_niche_behavior () {
|
||||
if let E1::V2 { .. } = (E1::V1 { f: true }) {
|
||||
unsafe { intrinsics::abort(); }
|
||||
intrinsics::abort();
|
||||
}
|
||||
|
||||
if let E2::V1 { .. } = E2::V3::<Infallible> {
|
||||
unsafe { intrinsics::abort(); }
|
||||
intrinsics::abort();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue