Skip to content

Commit fb76c25

Browse files
committed
WIP
1 parent b7d6934 commit fb76c25

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: src/test/run-pass/compare.rs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
use std;
2+
import std::option;
3+
import std::option::none;
4+
5+
tag sty {
6+
ty_nil;
7+
}
8+
9+
type raw_t = rec(sty struct,
10+
option::t[str] cname,
11+
uint hash);
12+
13+
fn mk_raw_ty(sty st, &option::t[str] cname) -> raw_t {
14+
ret rec(struct=st,
15+
cname=cname,
16+
hash=0u);
17+
}
18+
19+
fn main() {
20+
mk_raw_ty(ty_nil, none[str]);
21+
}

0 commit comments

Comments
 (0)