summaryrefslogtreecommitdiffstats
path: root/src/test/ui/check-static-immutable-mut-slices.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/check-static-immutable-mut-slices.stderr')
-rw-r--r--src/test/ui/check-static-immutable-mut-slices.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/check-static-immutable-mut-slices.stderr b/src/test/ui/check-static-immutable-mut-slices.stderr
new file mode 100644
index 000000000..a32a94c13
--- /dev/null
+++ b/src/test/ui/check-static-immutable-mut-slices.stderr
@@ -0,0 +1,9 @@
+error[E0764]: mutable references are not allowed in the final value of statics
+ --> $DIR/check-static-immutable-mut-slices.rs:3:37
+ |
+LL | static TEST: &'static mut [isize] = &mut [];
+ | ^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0764`.