1 // http://rust-lang.org/COPYRIGHT.
3 #![feature(slice_patterns)]
6 let mut a = [1, 2, 3, 4];
8 [1, 2, ref tail @ ..] => tail,
11 println!("t[0]: {}", t[0]);
12 a[2] = 0; //~ ERROR cannot assign to `a[_]` because it is borrowed
13 println!("t[0]: {}", t[0]);