rust/tests/ui/statics/issue-15261.rs
2023-01-11 09:32:08 +00:00

12 lines
192 B
Rust

// build-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
// pretty-expanded FIXME #23616
static mut n_mut: usize = 0;
static n: &'static usize = unsafe{ &n_mut };
fn main() {}