Skip to content

Commit

Permalink
Rollup merge of rust-lang#62994 - iluuu1994:test-for-43398, r=nikomat…
Browse files Browse the repository at this point in the history
…sakis

Add test for rust-lang#43398

Closes rust-lang#43398
  • Loading branch information
Centril authored Aug 8, 2019
2 parents db7c773 + ebc3600 commit 3a84c9d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/ui/issues/issue-43398.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// run-pass

#![feature(core_intrinsics)]
#![feature(repr128)]

#[repr(i128)]
enum Big { A, B }

fn main() {
unsafe {
println!("{} {:?}",
std::intrinsics::discriminant_value(&Big::A),
std::mem::discriminant(&Big::B));
}
}

0 comments on commit 3a84c9d

Please sign in to comment.