Skip to content

Commit 843e2ee

Browse files
committed
add test for nested pattern
1 parent feb8bb1 commit 843e2ee

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// check-pass
2+
#![allow(unused_variables)]
3+
4+
struct Zeroes;
5+
struct Foo<T>(T);
6+
7+
impl Into<[usize; 3]> for Zeroes {
8+
fn into(self) -> [usize; 3] {
9+
[0; 3]
10+
}
11+
}
12+
13+
fn main() {
14+
let Foo([a, b, c]) = Foo(Zeroes.into());
15+
}

0 commit comments

Comments
 (0)