2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-08-31 08:02:01 -05:00
|
|
|
#![allow(non_upper_case_globals)]
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2015-01-25 15:05:03 -06:00
|
|
|
let _foo = 100;
|
2015-03-25 19:06:52 -05:00
|
|
|
const quux: isize = 5;
|
2012-10-15 14:27:09 -05:00
|
|
|
|
|
|
|
enum Stuff {
|
|
|
|
Bar = quux
|
|
|
|
}
|
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
assert_eq!(Stuff::Bar as isize, quux);
|
2012-10-15 14:27:09 -05:00
|
|
|
}
|