about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-10-05 15:36:29 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-10-05 16:33:17 -0700
commitcf3e7f2f0bc560f761c4663b11abe41f844e09a2 (patch)
tree43eb5fddb969bc5973ff3896dedc7751f2606720 /src
parent00a81a22a86391659ab7935f7afa958f1966b7e5 (diff)
downloadrust-cf3e7f2f0bc560f761c4663b11abe41f844e09a2.tar.gz
rust-cf3e7f2f0bc560f761c4663b11abe41f844e09a2.zip
stdlib: Add a void type
Diffstat (limited to 'src')
-rw-r--r--src/lib/util.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/util.rs b/src/lib/util.rs
index 1d9c28d99e4..b67bd469c7f 100644
--- a/src/lib/util.rs
+++ b/src/lib/util.rs
@@ -17,6 +17,11 @@ pure fn rational_leq(x: rational, y: rational) -> bool {
 }
 
 pure fn orb(a: bool, b: bool) -> bool { a || b }
+
+tag void {
+    void(@void);
+}
+
 // Local Variables:
 // mode: rust;
 // fill-column: 78;