aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-18 12:20:40 -0700
committerGraydon Hoare <[email protected]>2011-04-18 12:20:50 -0700
commit8a6590a75f4a9ac95512a47163cb5396158e9018 (patch)
treee9dfd8d6aecc22aee456f31df6990f5c4d6a9210 /src
parentChange the makefiles to use -c. (diff)
downloadrust-8a6590a75f4a9ac95512a47163cb5396158e9018.tar.xz
rust-8a6590a75f4a9ac95512a47163cb5396158e9018.zip
Remove use of 'use' from type-params-in-for-each.rs, put out darwin fire.
Diffstat (limited to 'src')
-rw-r--r--src/test/run-pass/type-params-in-for-each.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/test/run-pass/type-params-in-for-each.rs b/src/test/run-pass/type-params-in-for-each.rs
index 74f69aca..49fe099b 100644
--- a/src/test/run-pass/type-params-in-for-each.rs
+++ b/src/test/run-pass/type-params-in-for-each.rs
@@ -1,8 +1,14 @@
-use std;
-import std._uint;
+
+iter range(uint lo, uint hi) -> uint {
+ auto lo_ = lo;
+ while (lo_ < hi) {
+ put lo_;
+ lo_ += 1u;
+ }
+}
fn create_index[T](vec[tup(T, uint)] index, fn(&T) -> uint hash_fn) {
- for each (uint i in _uint.range(0u, 256u)) {
+ for each (uint i in range(0u, 256u)) {
let vec[T] bucket = vec();
}
}