所有権 Vecのみ非プリミティブ プリミティブとCopy 全プリミティブの型はCopyを実装している Copyを実装していると所有権が移るのではなくオブジェクトのコピーが新しく生成される 配列はプリミティブ。Vecは非プリミティブ fn main() { let tempArrayA: [i16; 3] = [1, 2, 3]; let tempArrayB: [i16; 3] = tempArrayA; assert_eq!(tempArrayA, tempArrayB); /* 所有権が移動した変数を使用したためエラー */ // let tempVecA: Vec<i16> = Vec::new(); // let tempVecB: Vec<i16> = tempVecA; // assert_eq!(tempHogeA, tempHogeB); } ライフタイム スライスのみ動的