Sign in
fuchsia
/
third_party
/
rust
/
298770406200600be3eedb753d262401b2d59678
/
.
/
src
/
test
/
ui
/
issues
/
issue-17458.rs
blob: 444e94d829bf8c0f76d08109a2b0138fd2d891bd [
file
] [
log
] [
blame
]
static
X
:
usize
=
unsafe
{
0
as
*
const
usize
as
usize
};
//~^ ERROR: casting pointers to integers in statics is unstable
fn
main
()
{
assert_eq
!(
X
,
0
);
}