1 fn match_vecs<'a, T>(l1: &'a [T], l2: &'a [T]) {
3 //~^ ERROR: cannot move out of type `[T]`, a non-copy slice
4 //~| ERROR: cannot move out of type `[T]`, a non-copy slice
5 (&[], &[]) => println!("both empty"),
6 (&[], &[hd, ..]) | (&[hd, ..], &[])
7 => println!("one empty"),
8 (&[hd1, ..], &[hd2, ..])
9 => println!("both nonempty"),