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