Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
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
);
}