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
|
|
|
use std;
|
2011-12-13 16:25:51 -08:00
|
|
|
import option;
|
|
|
|
import option::none;
|
2011-05-14 03:21:08 -04:00
|
|
|
|
2012-01-19 16:10:31 -08:00
|
|
|
enum sty { ty_nil; }
|
2011-05-14 03:21:08 -04:00
|
|
|
|
2011-08-10 09:27:22 -07:00
|
|
|
type raw_t = {struct: sty, cname: option::t<str>, hash: uint};
|
2011-05-14 03:21:08 -04:00
|
|
|
|
2011-09-12 11:27:30 +02:00
|
|
|
fn mk_raw_ty(st: sty, cname: option::t<str>) -> raw_t {
|
2011-07-27 14:19:39 +02:00
|
|
|
ret {struct: st, cname: cname, hash: 0u};
|
2011-05-14 03:21:08 -04:00
|
|
|
}
|
|
|
|
|
2011-08-13 00:10:18 -07:00
|
|
|
fn main() { mk_raw_ty(ty_nil, none::<str>); }
|