summaryrefslogblamecommitdiff
path: root/rust-book/variables/src/main.rs
blob: d6325307e8dc82099820e38b37be3494c1cbce4f (plain) (tree)
1
2
3
4
5
6





                                      
fn main() {
    let a: [i32; 5] = [1, 2, 3, 4, 5];
    let first = a[0];
    let second = a[1];
    println!("{} {}", first, second);
}