mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
15 lines
278 B
Rust
15 lines
278 B
Rust
//@ run-pass
|
|
|
|
#![feature(core_intrinsics)]
|
|
#![feature(repr128)]
|
|
//~^ WARN the feature `repr128` is incomplete
|
|
|
|
#[repr(i128)]
|
|
enum Big { A, B }
|
|
|
|
fn main() {
|
|
println!("{} {:?}",
|
|
std::intrinsics::discriminant_value(&Big::A),
|
|
std::mem::discriminant(&Big::B));
|
|
}
|