10 Foo { string: "bar" },
14 [ref first, ref tail @ ..] => {
15 assert_eq!(first.string, "foo");
16 assert_eq!(tail.len(), 2);
17 assert_eq!(tail[0].string, "bar");
18 assert_eq!(tail[1].string, "baz");
20 match *(tail as &[_]) {
21 [Foo { .. }, _, Foo { .. }, ref _tail @ ..] => {
24 [Foo { string: ref a }, Foo { string: ref b }] => {
25 assert_eq!("bar", &a[0..a.len()]);
26 assert_eq!("baz", &b[0..b.len()]);