rust/tests/ui/issues/issue-38942.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
275 B
Rust
Raw Normal View History

//@ run-pass
2017-01-19 23:22:46 +00:00
// 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());
}