diff options
| author | togami2864 <tuabobo123@gmail.com> | 2021-11-20 18:49:30 +0900 |
|---|---|---|
| committer | togami2864 <tuabobo123@gmail.com> | 2021-11-20 18:49:30 +0900 |
| commit | ec7364f227a2cb8c3cc4ae5f98689e4440cc35e8 (patch) | |
| tree | f63bc5be01f7acc2f38e5ef0711263f063c9c9c7 | |
| parent | 38bd2514ad7d039f6836b0a05dda4dc5f0849942 (diff) | |
| download | rust-ec7364f227a2cb8c3cc4ae5f98689e4440cc35e8.tar.gz rust-ec7364f227a2cb8c3cc4ae5f98689e4440cc35e8.zip | |
add test suit
| -rw-r--r-- | tests/ui/iter_cloned_collect.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/iter_cloned_collect.rs b/tests/ui/iter_cloned_collect.rs index c2a036ec09f..639f50665f2 100644 --- a/tests/ui/iter_cloned_collect.rs +++ b/tests/ui/iter_cloned_collect.rs @@ -26,4 +26,7 @@ fn main() { // Issue #6808 let arr: [u8; 64] = [0; 64]; let _: Vec<_> = arr.iter().cloned().collect(); + + // Issue #6703 + let _: Vec<isize> = v.iter().copied().collect(); } |
