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