]> git.lizzy.rs Git - rust.git/blob - src/test/ui/check-static-immutable-mut-slices.rs
Simplify Cache wrapper to single type, impl Deref on it, fix all compilation errors...
[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 references in statics may only refer to immutable values
5
6 pub fn main() { }