]> git.proxmox.com Git - rustc.git/blame - src/test/ui/array-slice-vec/fixed_length_copy.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / array-slice-vec / fixed_length_copy.rs
CommitLineData
b7449926
XL
1// run-pass
2
c34b1796 3
223e47cc 4pub fn main() {
85aaf69f 5 let arr = [1,2,3];
223e47cc 6 let arr2 = arr;
85aaf69f
SL
7 assert_eq!(arr[1], 2);
8 assert_eq!(arr2[2], 3);
223e47cc 9}