Rollup merge of #62994 - iluuu1994:test-for-43398, r=nikomatsakis
Add test for #43398 Closes #43398
This commit is contained in:
commit
3a84c9db5f
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…
Reference in New Issue
Block a user