Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
72968e519834213d69989271fd6dfb2cdc64493c
/
.
/
tests
/
ui
/
consts
/
const-address-of-mut.rs
blob: 0018bf18e419bfe082ab37987f3ac3d454202a69 [
file
] [
log
] [
blame
]
#![
feature
(
raw_ref_op
)]
const
A
:
()
=
{
let
mut
x
=
2
;
&
raw
mut
x
;
};
//~ mutable pointer
static
B
:
()
=
{
let
mut
x
=
2
;
&
raw
mut
x
;
};
//~ mutable pointer
const
fn
foo
()
{
let
mut
x
=
0
;
let
y
=
&
raw
mut
x
;
//~ mutable pointer
}
fn
main
()
{}