Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
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
()
{
}