rust/src/test/ui/issues/issue-43398.rs

16 lines
262 B
Rust
Raw Normal View History

2019-07-26 00:20:28 +02:00
// 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));
}
}