Allow dangling_pointers_from_locals lint in tests

This commit is contained in:
Urgau 2025-07-22 23:11:52 +02:00
parent 8a3a7e625a
commit 21ec0d5a4c

View file

@ -1,5 +1,8 @@
// Make sure we catch this even without Stacked Borrows
//@compile-flags: -Zmiri-disable-stacked-borrows
#![allow(dangling_pointers_from_locals)]
use std::mem;
fn dangling() -> *const u8 {