summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-deref.rs
blob: 6060d8e510e8478b1c296dc3fc758032ff3fde42 (plain)
1
2
3
4
5
6
7
8
// run-pass

const C: &'static isize = &1000;
static D: isize = *C;

pub fn main() {
    assert_eq!(D, 1000);
}