Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
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
);
}