rust/src/test/ui/issues/issue-43398.rs
Ilija Tovilo ebc36001c0
Add test for #43398
Closes #43398
2019-08-05 09:47:20 +02:00

16 lines
262 B
Rust

// 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));
}
}