Fix test
This commit is contained in:
parent
784c1af8fd
commit
32ce61f947
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ fn iter<T>(v: ~[T], it: fn(T) -> bool) {
|
|||
}
|
||||
}
|
||||
|
||||
fn find_pos<T:Eq>(n: T, h: ~[T]) -> Option<uint> {
|
||||
fn find_pos<T:Eq Copy>(n: T, h: ~[T]) -> Option<uint> {
|
||||
let mut i = 0u;
|
||||
for iter(copy h) |e| {
|
||||
if e == n { return Some(i); }
|
||||
|
|
Loading…
Add table
Reference in a new issue