Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
d0cc289ec0fa35de2aa35df5445ebca332ccf4f6
/
.
/
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
()
{
}