From cf3e7f2f0bc560f761c4663b11abe41f844e09a2 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 5 Oct 2011 15:36:29 -0700 Subject: [PATCH] stdlib: Add a void type --- src/lib/util.rs | 5 +++++ 1 file changed, 5 insertions(+) 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;