]> git.lizzy.rs Git - rust.git/blob - src/test/ui/check-static-immutable-mut-slices.rs
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / 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 in statics
5
6 pub fn main() { }