rust/src/test/ui/issues/issue-42344.rs
2018-12-25 21:08:33 -07:00

8 lines
164 B
Rust

static TAB: [&mut [u8]; 0] = [];
pub unsafe fn test() {
TAB[0].iter_mut(); //~ ERROR cannot borrow data mutably in a `&` reference [E0389]
}
pub fn main() {}