rust/tests/ui/issues/issue-2074.rs
2024-02-16 20:02:50 +00:00

17 lines
254 B
Rust

//@ run-pass
//@ pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
pub fn main() {
let one = || {
enum r { a }
r::a as usize
};
let two = || {
enum r { a }
r::a as usize
};
one(); two();
}