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