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