2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 05:20:28 -05:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2011-05-14 12:29:11 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
// Regression test for issue #374
|
2011-05-14 02:21:08 -05:00
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2012-01-19 20:31:08 -06:00
|
|
|
enum sty { ty_nil, }
|
2011-05-14 02:21:08 -05:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
struct RawT {struct_: sty, cname: Option<String>, hash: usize}
|
2011-05-14 02:21:08 -05:00
|
|
|
|
2014-05-22 18:57:53 -05:00
|
|
|
fn mk_raw_ty(st: sty, cname: Option<String>) -> RawT {
|
2015-03-03 02:42:26 -06:00
|
|
|
return RawT {struct_: st, cname: cname, hash: 0};
|
2011-05-14 02:21:08 -05:00
|
|
|
}
|
|
|
|
|
2014-11-06 02:05:53 -06:00
|
|
|
pub fn main() { mk_raw_ty(sty::ty_nil, None::<String>); }
|