rust/tests/ui/consts/static_mut_containing_mut_ref.rs
Obei Sideg 408eeae59d Improve wording of static_mut_ref
Rename `static_mut_ref` lint to `static_mut_refs`.
2024-02-18 06:01:40 +03:00

8 lines
228 B
Rust

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