summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-2428.rs
blob: 94b830de3e67edacd9ec7795a9da4c0f3daa0d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
#![allow(non_upper_case_globals)]


pub fn main() {
    let _foo = 100;
    const quux: isize = 5;

    enum Stuff {
        Bar = quux
    }

    assert_eq!(Stuff::Bar as isize, quux);
}