#![allow(unused_variables)] #![feature(allocator_api)] fn main() { fn _inner() -> core::result::Result<(), impl core::fmt::Debug> { use std::alloc::System; let values = Box::<[u32], _>::try_new_zeroed_slice_in(3, System)?; let values = unsafe { values.assume_init() }; assert_eq!(* values, [0, 0, 0]); Ok::<(), std::alloc::AllocError>(()) } _inner().unwrap() }