diff options
| author | rail <12975677+rail-rain@users.noreply.github.com> | 2020-06-24 11:33:49 +1200 |
|---|---|---|
| committer | rail <12975677+rail-rain@users.noreply.github.com> | 2020-09-25 09:02:05 +1200 |
| commit | 174065fc98ef9335ea45a234aa18286cdf6c3934 (patch) | |
| tree | 48dfc8aa1fa90bb2954564286c1d89820c4576b8 | |
| parent | 10d7a18f72155f03dbd27b872a52b5dd45def8db (diff) | |
| download | rust-174065fc98ef9335ea45a234aa18286cdf6c3934.tar.gz rust-174065fc98ef9335ea45a234aa18286cdf6c3934.zip | |
fix the multiple counters test
| -rw-r--r-- | tests/ui/manual_memcpy.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/manual_memcpy.rs b/tests/ui/manual_memcpy.rs index 4846ab5eaaa..8318fd89811 100644 --- a/tests/ui/manual_memcpy.rs +++ b/tests/ui/manual_memcpy.rs @@ -160,12 +160,12 @@ pub fn manual_copy_with_counters(src: &[i32], dst: &mut [i32], dst2: &mut [i32]) } let mut count = 3; - let mut count = 30; + let mut count2 = 30; for i in 0..src.len() { dst[count] = src[i]; - dst2[count] = src[i]; - count += 1; + dst2[count2] = src[i]; count += 1; + count2 += 1; } // make sure parentheses are added properly to bitwise operators, which have lower precedence than |
