Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
borrowck
/
issue-42344.rs
blob: a7636edf2f8db063c20d24a44ab4d7d1e818b8ae [
file
] [
log
] [
blame
] [
edit
]
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
()
{}