summaryrefslogtreecommitdiffstats
path: root/tests/ui/enum-discriminant/issue-43398.rs
blob: 581db033f92578cb5aa1648bdbfb86473a11bd42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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));
}