rust/tests/ui/consts/static_mut_containing_mut_ref.rs
2024-02-16 20:02:50 +00:00

9 lines
227 B
Rust

//@ build-pass (FIXME(62277): could be check-pass?)
#![allow(static_mut_ref)]
static mut STDERR_BUFFER_SPACE: [u8; 42] = [0u8; 42];
pub static mut STDERR_BUFFER: *mut [u8] = unsafe { &mut STDERR_BUFFER_SPACE };
fn main() {}