Skip to content

Commit 046556e

Browse files
committedAug 27, 2020
Make sure the functions don't get merged
1 parent a4090d2 commit 046556e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/test/codegen/issue-27130.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ pub fn trim_in_place(a: &mut &[u8]) {
1717
pub fn trim_in_place2(a: &mut &[u8]) {
1818
while let Some(&42) = a.first() {
1919
// CHECK-NOT: slice_index_order_fail
20-
*a = &a[1..];
20+
*a = &a[2..];
2121
}
2222
}

0 commit comments

Comments
 (0)