From fb76c25729ae6cf2c755d7515830a27f9b0971ec Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 14 May 2011 03:21:08 -0400 Subject: [PATCH] WIP --- src/test/run-pass/compare.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/run-pass/compare.rs diff --git a/src/test/run-pass/compare.rs b/src/test/run-pass/compare.rs new file mode 100644 index 000000000000..b398fc5d9b00 --- /dev/null +++ b/src/test/run-pass/compare.rs @@ -0,0 +1,21 @@ +use std; +import std::option; +import std::option::none; + +tag sty { + ty_nil; +} + +type raw_t = rec(sty struct, + option::t[str] cname, + uint hash); + +fn mk_raw_ty(sty st, &option::t[str] cname) -> raw_t { + ret rec(struct=st, + cname=cname, + hash=0u); +} + +fn main() { + mk_raw_ty(ty_nil, none[str]); +} \ No newline at end of file