Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
pretty
/
raw-address-of.rs
blob: c00a16e238a661bb082b4300632fb8cd9cfdb0a1 [
file
] [
log
] [
blame
]
//@ pp-exact
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
))
};
}