Skip to content

Commit 32ce61f

Browse files
committed
Fix test
1 parent 784c1af commit 32ce61f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-pass/ret-break-cont-in-block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn iter<T>(v: ~[T], it: fn(T) -> bool) {
1111
}
1212
}
1313

14-
fn find_pos<T:Eq>(n: T, h: ~[T]) -> Option<uint> {
14+
fn find_pos<T:Eq Copy>(n: T, h: ~[T]) -> Option<uint> {
1515
let mut i = 0u;
1616
for iter(copy h) |e| {
1717
if e == n { return Some(i); }

0 commit comments

Comments
 (0)