2019-07-27 00:54:25 +03:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 12:20:28 +02:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
#![allow(non_upper_case_globals)]
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
const foo: isize = 4 >> 1;
|
2012-05-22 16:35:10 -07:00
|
|
|
enum bs { thing = foo }
|
2015-06-07 21:00:38 +03:00
|
|
|
pub fn main() { assert_eq!(bs::thing as isize, foo); }
|