diff options
| author | bors <bors@rust-lang.org> | 2024-02-11 05:13:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-11 05:13:02 +0000 |
| commit | a40a100e4bc5db830169f59cc301a1105dd366d8 (patch) | |
| tree | 3dfb18335ff56656383b97106112e199617842e6 /tests/ui/array-slice-vec | |
| parent | 5a3a2d5a5ea80b04df3fd3406f2bd924763d78a6 (diff) | |
| parent | 48bb2bf4e6bfc5c9ffc9cb3f34a9163c05ce2cb2 (diff) | |
| download | rust-a40a100e4bc5db830169f59cc301a1105dd366d8.tar.gz rust-a40a100e4bc5db830169f59cc301a1105dd366d8.zip | |
Auto merge of #3294 - rust-lang:rustup-2024-02-11, r=saethlin
Automatic Rustup
Diffstat (limited to 'tests/ui/array-slice-vec')
| -rw-r--r-- | tests/ui/array-slice-vec/check-static-mut-slices.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/ui/array-slice-vec/check-static-mut-slices.rs b/tests/ui/array-slice-vec/check-static-mut-slices.rs deleted file mode 100644 index b89c634036e..00000000000 --- a/tests/ui/array-slice-vec/check-static-mut-slices.rs +++ /dev/null @@ -1,15 +0,0 @@ -// run-pass -#![allow(dead_code)] - -// Checks that mutable static items can have mutable slices - - -static mut TEST: &'static mut [isize] = &mut [1]; -static mut EMPTY: &'static mut [isize] = &mut []; - -pub fn main() { - unsafe { - TEST[0] += 1; - assert_eq!(TEST[0], 2); - } -} |
