Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
polymorphization
/
promoted-function-3.rs
blob: bbd991e36ccaf2d3a0b0f61625a07d2dd11fc9db [
file
] [
log
] [
blame
]
// run-pass
// compile-flags: -Zpolymorphize=on -Zmir-opt-level=4
fn
caller
<
T
,
U
>()
->
&
'
static
usize
{
callee
::<
U
>()
}
fn
callee
<
T
>()
->
&
'
static
usize
{
&
std
::
mem
::
size_of
::<
T
>()
}
fn
main
()
{
assert_eq
!(
caller
::<(),
()>(),
&
0
);
}