Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
box
/
unit
/
unique-assign-generic.rs
blob: 9dc7fb8dcead24aac19786b80a5197aa0132ea4a [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
fn
f
<
T
>(
t
:
T
)
->
T
{
let
t1
=
t
;
t1
}
pub
fn
main
()
{
let
t
=
f
::<
Box
<
_
>>(
Box
::
new
(
100
));
assert_eq
!(
t
,
Box
::
new
(
100
));
}