Skip to content

Commit 99f7a60

Browse files
committed
---
yaml --- r: 2139 b: refs/heads/master c: 8a6590a h: refs/heads/master i: 2137: 570976e 2135: 475a1fc v: v3
1 parent 9886298 commit 99f7a60

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 9ab42038bb13d3c8b01faa9c88e660e4e590fb00
2+
refs/heads/master: 8a6590a75f4a9ac95512a47163cb5396158e9018

trunk/src/test/run-pass/type-params-in-for-each.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
use std;
2-
import std._uint;
1+
2+
iter range(uint lo, uint hi) -> uint {
3+
auto lo_ = lo;
4+
while (lo_ < hi) {
5+
put lo_;
6+
lo_ += 1u;
7+
}
8+
}
39

410
fn create_index[T](vec[tup(T, uint)] index, fn(&T) -> uint hash_fn) {
5-
for each (uint i in _uint.range(0u, 256u)) {
11+
for each (uint i in range(0u, 256u)) {
612
let vec[T] bucket = vec();
713
}
814
}

0 commit comments

Comments
 (0)