Sign in
rust
/
rust
/
0e252dfa22dd03f8a87f665d0ebe1192a5da07bf
/
.
/
tests
/
ui
/
array-slice-vec
/
infer_array_len.rs
blob: 2a342681e0fcb689bb30a0bdfebd5977bf05765e [
file
]
//@ check-pass
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
();
}