mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-05 19:43:24 +00:00
fix unused warning in a test
This commit is contained in:
parent
3865e654f0
commit
4da7d4b168
@ -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 {}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user