]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-38942.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-38942.rs
1 // run-pass
2 // See https://github.com/rust-lang/rust/issues/38942
3
4 #[repr(u64)]
5 pub enum NSEventType {
6     NSEventTypePressure,
7 }
8
9 pub const A: u64 = NSEventType::NSEventTypePressure as u64;
10
11 fn banana() -> u64 {
12     A
13 }
14
15 fn main() {
16     println!("banana! {}", banana());
17 }