Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let mut array = [0; 3];
- array[0] = 1;
- array[1] = 2;
- array[2] = 3;
- assert_eq!(array[0], 1);
- assert_eq!(array[1], 2);
- assert_eq!(array[2], 3);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement