diff options
Diffstat (limited to 'tests/ui/check-static-immutable-mut-slices.stderr')
-rw-r--r-- | tests/ui/check-static-immutable-mut-slices.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/check-static-immutable-mut-slices.stderr b/tests/ui/check-static-immutable-mut-slices.stderr new file mode 100644 index 000000000..a32a94c13 --- /dev/null +++ b/tests/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`. |