Insertion sort in Rust
As you have already been made aware, you should not be using &amp;mut Vec&lt;T&gt; unless you plan on adding or removing items from the Vec. Using &amp;mut [T] better expresses the contract of the function and is more flexible, allowing you to also sort arrays and anything else that can be expressed as a slice.
where clauses go on a separate line. This allows them to be easily found, which is important considering how much they affect the behavior of the function.
There's no need to declare the type of pos. Type inference will take care of it.
There's no need to redeclare pos just to make it mutable and decrement it. Just make the variable binding in the function declaration mut.
There's no need to return the unit value (()). Just return will suffice.
slice::swap exists. In the broader world, so does mem::swap.
With the power of swap, you can remove the need for the Copy bound.
Quickcheck is an invaluable tool for problems like this. You can create a property that can be validated across a wide range of automatically generated input.




pub fn insertion_sort&lt;T&gt;(values: &amp;mut [T])
    where T: Ord
{
    for i in 0..values.len() {
        for j in (0..i).rev() {
            if values[j] &gt;= values[j + 1] {
                values.swap(j, j + 1);
            } else {
                break
            }
        }
    }
}

#[macro_use]
extern crate quickcheck;

#[test]
fn test_insertion_sort_empty() {
    let mut values: [i32; 0] = [];
    insertion_sort(&amp;mut values);
    assert_eq!(values, [])
}

#[test]
fn test_insertion_sort_one() {
    let mut values = [1];
    insertion_sort(&amp;mut values);
    assert_eq!(values, [1]);
}

#[test]
fn test_insertion_multi() {
    let mut values = [9, 8, 7, 11, 10];
    insertion_sort(&amp;mut values);
    let values_expected: Vec&lt;_&gt; = (7..12).collect();
    assert_eq!(values_expected, values);
}

quickcheck! {
    fn test_insertion_everything(xs: Vec&lt;i32&gt;) -&gt; bool {
        // Macro doesn't allow `mut` in the `fn` declaration :-(
        let mut xs = xs;

        let mut expected_sorted = xs.clone();
        expected_sorted.sort();

        insertion_sort(&amp;mut xs);

        expected_sorted == xs
    }
}