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