Skip to content

Commit 6ce090e

Browse files
committed
Fix test failure
1 parent bddd992 commit 6ce090e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tests/compile-fail/ptr_legacy_provenance.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ fn main() {
1717

1818
let ptr = ptr::from_exposed_addr::<i32>(y_usize);
1919
let ptr = ptr.with_addr(x_usize);
20-
assert_eq!(unsafe { *ptr }, 0); //~ ERROR pointer to 4 bytes starting at offset -20 is out-of-bounds
20+
assert_eq!(unsafe { *ptr }, 0); //~ ERROR is out-of-bounds
2121
}

0 commit comments

Comments
 (0)