rust/src/test/ui/issues/issue-6991.rs
2018-12-25 21:08:33 -07:00

9 lines
139 B
Rust

// compile-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
static x: &'static usize = &1;
static y: usize = *x;
fn main() {}