Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
consts
/
issue-51559.rs
blob: 69f0d8df0aa4aafa1e98f88aaa434b4c5f9a2432 [
file
] [
log
] [
blame
]
#![
feature
(
const_raw_ptr_to_usize_cast
)]
const
BAR
:
*
mut
()
=
((||
3
)
as
fn
()
->
i32
)
as
*
mut
();
pub
const
FOO
:
usize
=
unsafe
{
BAR
as
usize
};
//~^ ERROR any use of this value will cause an error
fn
main
()
{}