We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bddd992 commit 6ce090eCopy full SHA for 6ce090e
tests/compile-fail/ptr_legacy_provenance.rs
@@ -17,5 +17,5 @@ fn main() {
17
18
let ptr = ptr::from_exposed_addr::<i32>(y_usize);
19
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
+ assert_eq!(unsafe { *ptr }, 0); //~ ERROR is out-of-bounds
21
}
0 commit comments