rust/tests/ui/consts/static_mut_containing_mut_ref.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
200 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
2018-12-17 13:20:42 +00:00
static mut STDERR_BUFFER_SPACE: [u8; 42] = [0u8; 42];
pub static mut STDERR_BUFFER: *mut [u8] = unsafe { &mut STDERR_BUFFER_SPACE };
fn main() {}