Allow invalid ref casting in Miri unaligned_ref_addr_of test
This commit is contained in:
parent
746bb7e136
commit
e08c9d1f81
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user