parent
a7f28678bb
commit
ebc36001c0
15
src/test/ui/issues/issue-43398.rs
Normal file
15
src/test/ui/issues/issue-43398.rs
Normal file
@ -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));
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user