Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
polymorphization
/
issue-74636.rs
blob: b06b5fdb004eec5833ad3e01584e371b8d49e8cc [
file
] [
log
] [
blame
] [
edit
]
//@ compile-flags:-Zpolymorphize=on
//@ build-pass
use
std
::
any
::
TypeId
;
pub
fn
foo
<
T
:
'
static
>(
_
:
T
)
->
TypeId
{
TypeId
::
of
::<
T
>()
}
fn
outer
<
T
:
'
static
>()
{
foo
(||
());
}
fn
main
()
{
outer
::<
u8
>();
}