1 //@compile-flags: -Zmiri-retag-fields=none
3 struct Newtype<'a>(&'a mut i32);
5 fn dealloc_while_running(_n: Newtype<'_>, dealloc: impl FnOnce()) {
9 // Make sure that we do *not* retag the fields of `Newtype`.
11 let ptr = Box::into_raw(Box::new(0i32));
12 #[rustfmt::skip] // I like my newlines
14 dealloc_while_running(
16 || drop(Box::from_raw(ptr)),