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]`
9 error[E0308]: mismatched types
10 --> $DIR/array-not-vector.rs:7:20
12 LL | let _y: &i32 = x;
13 | ---- ^ expected `i32`, found slice `[i32]`
15 | expected due to this
17 = note: expected reference `&i32`
18 found reference `&[i32]`
20 error: aborting due to 2 previous errors
22 For more information about this error, try `rustc --explain E0308`.