We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a69101 commit 0cb41aeCopy full SHA for 0cb41ae
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: b7d6934ef3abb839c7351b656911e98caf625c98
+refs/heads/master: fb76c25729ae6cf2c755d7515830a27f9b0971ec
trunk/src/test/run-pass/compare.rs
@@ -0,0 +1,21 @@
+use std;
+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