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