Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-25826.rs
blob: 36a69cf4c22ff9895bc476983be8d0be4c29e592 [
file
] [
log
] [
blame
]
fn
id
<
T
>(
t
:
T
)
->
T
{
t
}
fn
main
()
{
const
A
:
bool
=
unsafe
{
id
::<
u8
>
as
*
const
()
<
id
::<
u16
>
as
*
const
()
};
//~^ ERROR comparing raw pointers inside constant
println
!(
"{}"
,
A
);
}