diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/bench/shootout/fannkuchredux.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/bench/shootout/fannkuchredux.rs b/src/test/bench/shootout/fannkuchredux.rs index ad3d7dd2..5af56a47 100644 --- a/src/test/bench/shootout/fannkuchredux.rs +++ b/src/test/bench/shootout/fannkuchredux.rs @@ -7,14 +7,14 @@ import std.Vec; fn fannkuch(int n) -> int { - fn perm1init(uint i) -> mutable int { + fn perm1init(uint i) -> int { ret i as int; } auto perm1init_ = perm1init; // Rustboot workaround - auto perm = Vec.init_elt[mutable int](0, n as uint); - auto perm1 = Vec.init_fn[mutable int](perm1init_, n as uint); - auto count = Vec.init_elt[mutable int](0, n as uint); + auto perm = Vec.init_elt(0, n as uint); + auto perm1 = Vec.init_fn(perm1init_, n as uint); + auto count = Vec.init_elt(0, n as uint); auto f = 0; auto i = 0; |