2011-05-14 12:29:11 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
// Regression test for issue #374
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod std;
|
2012-09-05 14:32:05 -05:00
|
|
|
use option::None;
|
2011-05-14 02:21:08 -05:00
|
|
|
|
2012-01-19 20:31:08 -06:00
|
|
|
enum sty { ty_nil, }
|
2011-05-14 02:21:08 -05:00
|
|
|
|
2012-09-11 18:20:31 -05:00
|
|
|
type raw_t = {struct_: sty, cname: Option<~str>, hash: uint};
|
2011-05-14 02:21:08 -05:00
|
|
|
|
2012-08-20 14:23:37 -05:00
|
|
|
fn mk_raw_ty(st: sty, cname: Option<~str>) -> raw_t {
|
2012-09-11 18:20:31 -05:00
|
|
|
return {struct_: st, cname: cname, hash: 0u};
|
2011-05-14 02:21:08 -05:00
|
|
|
}
|
|
|
|
|
2012-08-20 14:23:37 -05:00
|
|
|
fn main() { mk_raw_ty(ty_nil, None::<~str>); }
|