]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfcs/rfc-2005-default-binding-mode/tuple.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / rfcs / rfc-2005-default-binding-mode / tuple.rs
1 // run-pass
2 pub fn main() {
3     let foo = (Some(1), (), (), vec![2, 3]);
4
5     match &foo {
6         (Some(n), .., v) => {
7             assert_eq!((*v).len(), 2);
8             assert_eq!(*n, 1);
9         }
10         (None, (), (), ..) => panic!(),
11     }
12 }