]> git.lizzy.rs Git - rust.git/blob - tests/ui/check-static-immutable-mut-slices.rs
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / check-static-immutable-mut-slices.rs
1 // Checks that immutable static items can't have mutable slices
2
3 static TEST: &'static mut [isize] = &mut [];
4 //~^ ERROR mutable references are not allowed
5
6 pub fn main() { }