Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f62a35bae82dd0c5ff9dedd83fe2cfd74b67792
/
.
/
tests
/
ui
/
consts
/
issue-17458.rs
blob: 44125a1c3df8d64302f9688a81883083c73873da [
file
] [
log
] [
blame
]
static
X
:
usize
=
unsafe
{
core
::
ptr
::
null
::<
usize
>()
as
usize
};
//~^ ERROR: pointers cannot be cast to integers during const eval
fn
main
()
{
assert_eq
!(
X
,
0
);
}