blob: 83bf058c449c971057ebb96f079b721da1d75bda [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/array-not-vector.rs:12:19
|
LL | let _x: i32 = [1, 2, 3];
| ^^^^^^^^^ expected i32, found array of 3 elements
|
= note: expected type `i32`
found type `[{integer}; 3]`
error[E0308]: mismatched types
--> $DIR/array-not-vector.rs:19:20
|
LL | let _y: &i32 = x;
| ^ expected i32, found slice
|
= note: expected type `&i32`
found type `&[i32]`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.