2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2023-07-03 15:55:37 -05:00
|
|
|
#![allow(unused_variables)]
|
|
|
|
|
|
|
|
struct Zeroes;
|
|
|
|
struct Foo<T>(T);
|
|
|
|
|
|
|
|
impl Into<[usize; 3]> for Zeroes {
|
|
|
|
fn into(self) -> [usize; 3] {
|
|
|
|
[0; 3]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let Foo([a, b, c]) = Foo(Zeroes.into());
|
|
|
|
}
|