2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2020-03-30 19:13:20 +02:00
|
|
|
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();
|
|
|
|
}
|