Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
unique
/
unique-assign-generic.rs
blob: 2d62ce59ad01257903878ca6dc9e4a895d5b63ae [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
box_syntax
)]
fn
f
<
T
>(
t
:
T
)
->
T
{
let
t1
=
t
;
t1
}
pub
fn
main
()
{
let
t
=
f
::<
Box
<
_
>>(
box
100
);
assert_eq
!(
t
,
box
100
);
}