Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
issue-25826.rs
blob: f5ed5aeedc39c238cae98a9d3bb53bc2c196ab99 [
file
] [
log
] [
blame
] [
edit
]
fn
id
<
T
>(
t
:
T
)
->
T
{
t
}
fn
main
()
{
const
A
:
bool
=
unsafe
{
id
::<
u8
>
as
*
const
()
<
id
::<
u16
>
as
*
const
()
};
//~^ ERROR pointers cannot
println
!(
"{}"
,
A
);
}