]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-42344.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-42344.rs
1 static TAB: [&mut [u8]; 0] = [];
2
3 pub unsafe fn test() {
4     TAB[0].iter_mut(); //~ ERROR cannot borrow data mutably in a `&` reference [E0389]
5 }
6
7 pub fn main() {}