rust reverse array code example Example: rust reverse an array let m1: [i32; 5] = [1, 2, 3, 4, 5]; let mut m2 = m1; m2.reverse();