Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
polymorphization
/
issue-74636.rs
blob: 4c532f451e373c3646e9d03ca63377a480cd0d0f [
file
] [
log
] [
blame
]
// 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
>();
}