use std::vec::Vec; use std::clone::Clone; fn merge_sort(v: Vec) -> Vec { if v.len() <= 1 { return v; } let sorted = v.to_vec(); return sorted; } fn main() { println!("Hello, world!"); let l = vec![2,1,3]; let l = merge_sort(l); println!("{:?}", l); }