Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ec7364f

Browse files
committed
add test suit
1 parent 38bd251 commit ec7364f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ui/iter_cloned_collect.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ fn main() {
2626
// Issue #6808
2727
let arr: [u8; 64] = [0; 64];
2828
let _: Vec<_> = arr.iter().cloned().collect();
29+
30+
// Issue #6703
31+
let _: Vec<isize> = v.iter().copied().collect();
2932
}

0 commit comments

Comments
 (0)