diff options
| author | Ralf Jung <post@ralfj.de> | 2022-11-20 08:04:36 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-11-20 08:04:36 +0100 |
| commit | 4da7d4b168193f0725444678cd05bd69965c5da1 (patch) | |
| tree | 13253d272d693305f14f4dd41e3141927a67616e | |
| parent | 3865e654f02c918e7b6ac7415dc6a9adb0dd436d (diff) | |
| download | rust-4da7d4b168193f0725444678cd05bd69965c5da1.tar.gz rust-4da7d4b168193f0725444678cd05bd69965c5da1.zip | |
fix unused warning in a test
| -rw-r--r-- | src/tools/miri/tests/pass/panic/catch_panic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/tests/pass/panic/catch_panic.rs b/src/tools/miri/tests/pass/panic/catch_panic.rs index 30890440653..5d57df4e52b 100644 --- a/src/tools/miri/tests/pass/panic/catch_panic.rs +++ b/src/tools/miri/tests/pass/panic/catch_panic.rs @@ -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 {} }); |
