2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2014-04-14 21:00:31 +05:30
|
|
|
#![allow(non_camel_case_types)]
|
2012-11-24 13:36:09 -08:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-02-01 12:44:15 -05:00
|
|
|
let one = || {
|
2020-11-25 17:00:28 -05:00
|
|
|
enum r { a }
|
2015-03-25 17:06:52 -07:00
|
|
|
r::a as usize
|
2014-02-21 15:41:51 -08:00
|
|
|
};
|
2015-02-01 12:44:15 -05:00
|
|
|
let two = || {
|
2020-11-25 17:00:28 -05:00
|
|
|
enum r { a }
|
2015-03-25 17:06:52 -07:00
|
|
|
r::a as usize
|
2014-02-21 15:41:51 -08:00
|
|
|
};
|
|
|
|
one(); two();
|
2012-11-24 13:36:09 -08:00
|
|
|
}
|