summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-2074.rs
blob: a6bea38580477303c0cd61d328232d10d76fd505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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();
}