Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
carbotaniuman committed May 18, 2022
1 parent bddd992 commit 6ce090e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/compile-fail/ptr_legacy_provenance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ fn main() {

let ptr = ptr::from_exposed_addr::<i32>(y_usize);
let ptr = ptr.with_addr(x_usize);
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
}

0 comments on commit 6ce090e

Please sign in to comment.