Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
794181788d94b7bc9e4717b97313f525054c4710
/
.
/
src
/
test
/
ui
/
consts
/
const-points-to-static.rs
blob: b998b7a97be4e773b43f9a2e2805001fb40d534d [
file
] [
log
] [
blame
]
// compile-flags: -Zunleash-the-miri-inside-of-you
#![
allow
(
dead_code
)]
const
TEST
:
&
u8
=
&
MY_STATIC
;
//~^ skipping const checks
//~| it is undefined behavior to use this value
static
MY_STATIC
:
u8
=
4
;
fn
main
()
{
}