Allow invalid ref casting in Miri unaligned_ref_addr_of test

This commit is contained in:
Urgau 2023-12-17 18:40:49 +01:00
parent 746bb7e136
commit e08c9d1f81

View File

@ -1,6 +1,8 @@
// This should fail even without Stacked Borrows.
//@compile-flags: -Zmiri-disable-stacked-borrows -Cdebug-assertions=no
#![allow(invalid_reference_casting)] // for u16 -> u32
fn main() {
// Try many times as this might work by chance.
for _ in 0..20 {