Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
check-static-immutable-mut-slices.rs
blob: 3be02f6a0f674cedc3fcca37b8a18647ec439230 [
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 in statics
pub
fn
main
()
{
}