Skip to content

Commit 174065f

Browse files
committed
fix the multiple counters test
1 parent 10d7a18 commit 174065f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ui/manual_memcpy.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ pub fn manual_copy_with_counters(src: &[i32], dst: &mut [i32], dst2: &mut [i32])
160160
}
161161

162162
let mut count = 3;
163-
let mut count = 30;
163+
let mut count2 = 30;
164164
for i in 0..src.len() {
165165
dst[count] = src[i];
166-
dst2[count] = src[i];
167-
count += 1;
166+
dst2[count2] = src[i];
168167
count += 1;
168+
count2 += 1;
169169
}
170170

171171
// make sure parentheses are added properly to bitwise operators, which have lower precedence than

0 commit comments

Comments
 (0)