blob: 5faa983ab09f71cc0e9ebabcea6f6d0df7daf80f [file] [log] [blame]
// We are keeping this test in case we decide to allow mutable references in statics again
#![feature(const_mut_refs)]
#![allow(const_err)]
static OH_NO: &mut i32 = &mut 42;
//~^ ERROR mutable references are not allowed in statics
fn main() {
assert_eq!(*OH_NO, 42);
}