1 2 3 4 5 6 7 8 9
fn test() { let w: &mut [isize]; w[5] = 0; //~ ERROR [E0381] let mut w: &mut [isize]; w[5] = 0; //~ ERROR [E0381] } fn main() { test(); }