Sign in
fuchsia
/
third_party
/
rust
/
9f7b58f3c94708f344237f826b4f96a659b5fc82
/
.
/
src
/
test
/
pretty
/
raw-address-of.rs
blob: 6ccc434a1e79ca1ce0741d9509aec476fe7b1f8c [
file
] [
log
] [
blame
]
// pp-exact
#![
feature
(
raw_ref_op
)]
const
C_PTR
:
()
=
{
let
a
=
1
;
&
raw
const
a
;
};
static
S_PTR
:
()
=
{
let
b
=
false
;
&
raw
const
b
;
};
fn
main
()
{
let
x
=
123
;
let
mut
y
=
345
;
let
c_p
=
&
raw
const
x
;
let
parens
=
unsafe
{
*(&
raw
mut
(
y
))
};
}