Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-25826.rs
blob: d1093c205798a0b8875111e57d65d23625d0e74b [
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 pointers cannot be reliably compared during const eval
println
!(
"{}"
,
A
);
}