If you are merely trying to copy the element at index 1 into the element at index 0 (only possible if the type is Copy):
foo[0] = foo[1];
If you don't have a Copy type, then you can't just move out of any element of an array without providing a replacement. Perhaps what you really have is a Vec, in which case you could do:
let mut foo = vec![1, 2];
foo.swap_remove(0);
or
let mut last = foo.pop().expect("empty vector");
foo[0] = last;