Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
consts
/
miri_unleashed
/
read_from_static.rs
blob: 821c501c9fcc5e4cec5cc3a73283e58bd45a1352 [
file
] [
log
] [
blame
]
// run-pass
// compile-flags: -Zunleash-the-miri-inside-of-you
#![
feature
(
const_mut_refs
)]
#![
allow
(
const_err
)]
static
OH_YES
:
&
mut
i32
=
&
mut
42
;
fn
main
()
{
// Make sure `OH_YES` can be read.
assert_eq
!(*
OH_YES
,
42
);
}