Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
array-slice-vec
/
infer_array_len.rs
blob: 22fe7cb88388895fecbc675daf8641ff4c4891ac [
file
] [
log
] [
blame
]
// see issue #70529
struct
A
;
impl
From
<
A
>
for
[
u8
;
2
]
{
fn
from
(
a
:
A
)
->
Self
{
[
0
;
2
]
}
}
impl
From
<
A
>
for
[
u8
;
3
]
{
fn
from
(
a
:
A
)
->
Self
{
[
0
;
3
]
}
}
fn
main
()
{
let
a
=
A
;
let
[
_
,
_
]
=
a
.
into
();
//~^ ERROR type annotations needed
}