6 assert_eq!((a, b), (0, 1));
8 assert_eq!((a, b), (1, 0));
10 assert_eq!((a, b), (1, 2));
12 assert_eq!((a, b), (2, 2));
14 assert_eq!((a, b), (2, 2));
20 // Test for a non-Copy type (String):
22 (c, d) = ("c".to_owned(), "d".to_owned());
29 // Test nesting/parentheses:
31 assert_eq!((a, b), (0, 1));
32 (((a, b)), (c)) = ((2, 3), d);
33 assert_eq!((a, b), (2, 3));
35 ((a, .., b), .., (..)) = ((4, 5), ());
36 assert_eq!((a, b), (4, 5));