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

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

17 lines
254 B
Rust
Raw Normal View History

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