Sign in
fuchsia
/
third_party
/
rust
/
a7a6dedfe661a6d9d181afeb0fbaa894fcb7362b
/
.
/
src
/
test
/
ui
/
issues
/
issue-42344.rs
blob: a7636edf2f8db063c20d24a44ab4d7d1e818b8ae [
file
] [
log
] [
blame
]
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
()
{}