summaryrefslogtreecommitdiffstats
path: root/src/test/ui/static/static-mut-not-constant.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/static/static-mut-not-constant.stderr')
-rw-r--r--src/test/ui/static/static-mut-not-constant.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/static/static-mut-not-constant.stderr b/src/test/ui/static/static-mut-not-constant.stderr
new file mode 100644
index 000000000..a0fa24515
--- /dev/null
+++ b/src/test/ui/static/static-mut-not-constant.stderr
@@ -0,0 +1,9 @@
+error[E0010]: allocations are not allowed in statics
+ --> $DIR/static-mut-not-constant.rs:3:28
+ |
+LL | static mut a: Box<isize> = box 3;
+ | ^^^^^ allocation not allowed in statics
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0010`.