2011-05-14 12:29:11 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
// Regression test for issue #374
|
2011-05-14 02:21:08 -05:00
|
|
|
use std;
|
|
|
|
import std::option;
|
|
|
|
import std::option::none;
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
tag sty { ty_nil; }
|
2011-05-14 02:21:08 -05:00
|
|
|
|
2011-08-10 11:27:22 -05:00
|
|
|
type raw_t = {struct: sty, cname: option::t<str>, hash: uint};
|
2011-05-14 02:21:08 -05:00
|
|
|
|
2011-09-12 04:27:30 -05:00
|
|
|
fn mk_raw_ty(st: sty, cname: option::t<str>) -> raw_t {
|
2011-07-27 07:19:39 -05:00
|
|
|
ret {struct: st, cname: cname, hash: 0u};
|
2011-05-14 02:21:08 -05:00
|
|
|
}
|
|
|
|
|
2011-08-13 02:10:18 -05:00
|
|
|
fn main() { mk_raw_ty(ty_nil, none::<str>); }
|