Sign in
fuchsia
/
third_party
/
rust
/
03222c037142e915e9ea75f681ab98a5a46b8739
/
.
/
src
/
test
/
ui
/
unsized-locals
/
reference-unsized-locals.rs
blob: 1560d25d4b0de1f83151a98c7500f21d894f81d2 [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
unsized_locals
)]
fn
main
()
{
let
foo
:
Box
<[
u8
]>
=
Box
::
new
(*
b
"foo"
);
let
foo
:
[
u8
]
=
*
foo
;
assert_eq
!(&
foo
,
b
"foo"
as
&[
u8
]);
}