blob: c03336ea37af8a36a1d4886539ce00f171a47152 [file] [log] [blame]
// run-pass
fn bar(v: &mut [usize]) {
v.reverse();
v.reverse();
v.reverse();
}
pub fn main() {
let mut the_vec = vec![1, 2, 3, 100];
bar(&mut the_vec);
assert_eq!(the_vec, [100, 3, 2, 1]);
}