blob: 37186537d6cac95b92f64913dc5b4493f4d1449e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Regression test for issue #374
use std;
import option;
import option::none;
tag sty { ty_nil; }
type raw_t = {struct: sty, cname: option::t<str>, hash: uint};
fn mk_raw_ty(st: sty, cname: option::t<str>) -> raw_t {
ret {struct: st, cname: cname, hash: 0u};
}
fn main() { mk_raw_ty(ty_nil, none::<str>); }
|