| error: Undefined Behavior: deallocation through <wildcard> at ALLOC[0x0] is forbidden |
| --> tests/fail/tree_borrows/wildcard/dealloc.rs:LL:CC |
| | |
| LL | unsafe { std::alloc::dealloc(wild as *mut u8, Layout::new::<u32>()) }; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here |
| | |
| = help: this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental |
| = help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/tree-borrows.md for further information |
| = help: there are no exposed tags which may perform this access here |
| |
| note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace |
| |
| error: aborting due to 1 previous error |
| |