Skip to content

Commit

Permalink
fix unused warning in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Nov 20, 2022
1 parent 3865e65 commit 4da7d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/miri/tests/pass/panic/catch_panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fn main() {
});

test(Some("align_offset: align is not a power-of-two"), |_old_val| {
(0usize as *const u8).align_offset(3);
let _ = (0usize as *const u8).align_offset(3);
loop {}
});

Expand Down

0 comments on commit 4da7d4b

Please sign in to comment.