summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-38942.rs
blob: 308bdd6e28cc4c500f2531c900b5506a5ca3761e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass
// See https://github.com/rust-lang/rust/issues/38942

#[repr(u64)]
pub enum NSEventType {
    NSEventTypePressure,
}

pub const A: u64 = NSEventType::NSEventTypePressure as u64;

fn banana() -> u64 {
    A
}

fn main() {
    println!("banana! {}", banana());
}