Sign in
fuchsia
/
third_party
/
rust
/
780f95dd182b1a432159430add57e9ab7cb45dd6
/
.
/
tests
/
ui
/
consts
/
static-raw-pointer-interning.rs
blob: 0e915760675b5e6462be8ebe373959705bed6c7d [
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
);
}