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