mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
18 lines
274 B
Rust
18 lines
274 B
Rust
// 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());
|
|
}
|