summary refs log tree commit diff
path: root/src/test/ui/issues/issue-42344.rs
blob: 5f1bb4f91bb8454990b158f8c933db704b1f613e (plain)
1
2
3
4
5
6
7
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() {}