aboutsummaryrefslogtreecommitdiff
path: root/src/test/bench/shootout/binary-trees.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-15 18:22:10 -0700
committerGraydon Hoare <[email protected]>2010-09-15 18:22:10 -0700
commitcd1a765c6f635c7cf9d39a46f42c93a2cbbf1982 (patch)
tree2ac85f1ed7ede99a498f90dd0ecb56239b4e92f9 /src/test/bench/shootout/binary-trees.rs
parentMinor improvements to pretty-printer. (diff)
downloadrust-cd1a765c6f635c7cf9d39a46f42c93a2cbbf1982.tar.xz
rust-cd1a765c6f635c7cf9d39a46f42c93a2cbbf1982.zip
Add Peter Hull's contributed translation of the fasta shootout benchmark (integer-only version).
Diffstat (limited to 'src/test/bench/shootout/binary-trees.rs')
-rw-r--r--src/test/bench/shootout/binary-trees.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/bench/shootout/binary-trees.rs b/src/test/bench/shootout/binary-trees.rs
index bb3ab602..669cd809 100644
--- a/src/test/bench/shootout/binary-trees.rs
+++ b/src/test/bench/shootout/binary-trees.rs
@@ -1,4 +1,7 @@
-type tree = tag(nil(), node(@tree, @tree, int));
+tag tree {
+ nil();
+ node(@tree, @tree, int);
+}
fn item_check(&tree t) -> int {
alt (t) {