rust/src/test/ui/issues/issue-43398.rs
2019-11-06 11:04:42 +01:00

14 lines
231 B
Rust

// run-pass
#![feature(core_intrinsics)]
#![feature(repr128)]
#[repr(i128)]
enum Big { A, B }
fn main() {
println!("{} {:?}",
std::intrinsics::discriminant_value(&Big::A),
std::mem::discriminant(&Big::B));
}