Sign in
android
/
toolchain
/
rustc
/
d59a28787b7ba06edbd1e4528a42b66d67dc6a19
/
.
/
src
/
test
/
ui
/
generics
/
generic-fn-unique.rs
blob: 6cda1c3dc15e1f3c98edbe2ec92505848a2aa079 [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
box_syntax
)]
fn
f
<
T
>(
x
:
Box
<
T
>)
->
Box
<
T
>
{
return
x
;
}
pub
fn
main
()
{
let
x
=
f
(
box
3
);
println
!(
"{}"
,
*
x
);
}