summaryrefslogtreecommitdiffstats
path: root/tests/ui/static/refer-to-other-statics-by-value.rs
blob: 90f1980f85809f2842de44bae9d4d9324b2affa4 (plain)
1
2
3
4
5
6
7
8
// run-pass

static A: usize = 42;
static B: usize = A;

fn main() {
    assert_eq!(B, 42);
}