Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
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
);
}