Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
check-static-immutable-mut-slices.rs
blob: d5e9fb2dede9341255f38bccce90bd67db27475b [
file
] [
log
] [
blame
]
// Checks that immutable static items can't have mutable slices
static
TEST
:
&
'
static
mut
[
isize
]
=
&
mut
[];
//~^ ERROR references in statics may only refer to immutable values
pub
fn
main
()
{
}