rust/tests/ui/issues/issue-38727.rs
2023-01-11 09:32:08 +00:00

14 lines
130 B
Rust

// build-pass
#![allow(dead_code)]
#[repr(u64)]
enum A {
A = 0u64,
B = !0u64,
}
fn cmp() -> A {
A::B
}
fn main() {}