2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-08-31 15:02:01 +02:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-02-18 05:42:01 -05:00
|
|
|
enum test { thing = -5 >> 1_usize }
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-03-25 17:06:52 -07:00
|
|
|
assert_eq!(test::thing as isize, -3);
|
2012-05-30 16:02:48 -07:00
|
|
|
}
|