]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/fixed_length_copy.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / array-slice-vec / fixed_length_copy.rs
1 // run-pass
2
3
4 pub fn main() {
5     let arr = [1,2,3];
6     let arr2 = arr;
7     assert_eq!(arr[1], 2);
8     assert_eq!(arr2[2], 3);
9 }