Skip to content

Commit 4c25cf0

Browse files
committed
fix into_iter usage
1 parent bcbc666 commit 4c25cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-pass/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn iter_any() {
3030
let h = |(), (), x: &u8| { 10u8 == *x };
3131
h((), (), &1u8);
3232

33-
[1, 2, 3u8].into_iter().any(|elt| 10 == *elt);
33+
[1, 2, 3u8].iter().any(|elt| 10 == *elt);
3434
}
3535

3636
fn main() {

0 commit comments

Comments
 (0)