summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-38727.rs
blob: 2d418b652699e7bd14f806d6c1663b5f3a0eb1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// build-pass
#![allow(dead_code)]
#[repr(u64)]
enum A {
    A = 0u64,
    B = !0u64,
}

fn cmp() -> A {
    A::B
}

fn main() {}