Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
check-static-immutable-mut-slices.rs
blob: 8f9680778aa03d766e5f87f69798a9cb0a78c797 [
file
] [
log
] [
blame
]
// Checks that immutable static items can't have mutable slices
static
TEST
:
&
'
static
mut
[
isize
]
=
&
mut
[];
//~^ ERROR mutable references are not allowed
pub
fn
main
()
{
}