mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
9 lines
196 B
Rust
9 lines
196 B
Rust
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() {}
|