summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-6991.rs
blob: f00cd9aeffd7c5125cb3fadcfe47eb1a38a0f5e9 (plain)
1
2
3
4
5
6
7
8
// check-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]

static x: &'static usize = &1;
static y: usize = *x;

fn main() {}