Skip to content

Commit 6d8bb3c

Browse files
committed
Un-xfail zip-same-length
There was a type error that was getting reported poorly. Fixed it. (Now to figure out why the error was reported so poorly...)
1 parent 9f7ed2f commit 6d8bb3c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/run-pass/zip-same-length.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// xfail-stage1
2-
// xfail-stage2
3-
// xfail-stage3
41
// In this case, the code should compile and should
52
// succeed at runtime
63
use std;
@@ -20,6 +17,7 @@ fn main() {
2017
check same_length(chars, ints);
2118
let ps = zip(chars, ints);
2219

20+
check is_not_empty(ps);
2321
assert (head(ps) == ('a', 1u));
24-
assert (last(ps) == ('j' as u8, 10u));
25-
}
22+
assert (last_total(ps) == (j as char, 10u));
23+
}

0 commit comments

Comments
 (0)