Add test for #43398

Closes #43398
上级 a7f28678
// 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));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册