diff options
Diffstat (limited to 'src/test/ui/static/static-mut-not-constant.rs')
-rw-r--r-- | src/test/ui/static/static-mut-not-constant.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/static/static-mut-not-constant.rs b/src/test/ui/static/static-mut-not-constant.rs new file mode 100644 index 000000000..2091fffd4 --- /dev/null +++ b/src/test/ui/static/static-mut-not-constant.rs @@ -0,0 +1,6 @@ +#![feature(box_syntax)] + +static mut a: Box<isize> = box 3; +//~^ ERROR allocations are not allowed in statics + +fn main() {} |