Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
consts
/
min_const_fn
/
address_of_const.rs
blob: 3db19e9cde8f069c97dde9ab4f03adc46ea568d5 [
file
] [
log
] [
blame
]
// check-pass
#![
feature
(
raw_ref_op
)]
const
fn
const_address_of_in_const
()
{
let
mut
a
=
0
;
let
b
=
&
raw
const
a
;
}
struct
X
;
impl
X
{
const
fn
inherent_const_address_of_in_const
()
{
let
mut
a
=
0
;
let
b
=
&
raw
const
a
;
}
}
fn
main
()
{}