blob: a7636edf2f8db063c20d24a44ab4d7d1e818b8ae (
plain)
1
2
3
4
5
6
7
8
|
static TAB: [&mut [u8]; 0] = [];
pub unsafe fn test() {
TAB[0].iter_mut();
//~^ ERROR cannot borrow `*TAB[_]` as mutable, as `TAB` is an immutable static item [E0596]
}
pub fn main() {}
|