1 error[E0308]: mismatched types
2 --> $DIR/array-not-vector.rs:2:19
4 LL | let _x: i32 = [1, 2, 3];
5 | ^^^^^^^^^ expected i32, found array `[{integer}; 3]`
7 error[E0308]: mismatched types
8 --> $DIR/array-not-vector.rs:7:20
10 LL | let _y: &i32 = x;
11 | ^ expected i32, found slice `[i32]`
13 = note: expected reference `&i32`
14 found reference `&[i32]`
16 error: aborting due to 2 previous errors
18 For more information about this error, try `rustc --explain E0308`.