blob: 5f3473e9feb74f6c5b68b86bd37bf84fa868eff1 (
plain)
1
2
3
4
5
6
7
8
|
// run-pass
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
const foo: isize = 4 >> 1;
enum bs { thing = foo }
pub fn main() { assert_eq!(bs::thing as isize, foo); }
|