Sign in
android
/
toolchain
/
rustc
/
da60c8575e02ed54fcffcb7f2f9289b4705b60ff
/
.
/
src
/
test
/
ui
/
consts
/
static-raw-pointer-interning.rs
blob: cab60c91e165cc469afb01e7dac2cb050211d507 [
file
] [
log
] [
blame
]
// run-pass
static
FOO
:
Foo
=
Foo
{
field
:
&
42
as
*
const
i32
,
};
struct
Foo
{
field
:
*
const
i32
,
}
unsafe
impl
Sync
for
Foo
{}
fn
main
()
{
assert_eq
!(
unsafe
{
*
FOO
.
field
},
42
);
}