summaryrefslogtreecommitdiffstats
path: root/src/test/ui/static/static-mut-not-constant.rs
blob: 2091fffd418ee68c3b315e16f01b5fbb0af6954b (plain)
1
2
3
4
5
6
#![feature(box_syntax)]

static mut a: Box<isize> = box 3;
//~^ ERROR allocations are not allowed in statics

fn main() {}