2019-11-28 11:38:07 -05:00
|
|
|
// run-pass
|
2020-05-02 13:19:24 +02:00
|
|
|
#![feature(const_mut_refs)]
|
2019-11-28 11:38:07 -05:00
|
|
|
#![allow(const_err)]
|
|
|
|
|
|
|
|
static OH_YES: &mut i32 = &mut 42;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// Make sure `OH_YES` can be read.
|
|
|
|
assert_eq!(*OH_YES, 42);
|
|
|
|
}
|