2018-08-08 12:28:26 +00:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/array-not-vector.rs:2:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let _x: i32 = [1, 2, 3];
|
2023-01-03 02:00:33 +00:00
|
|
|
| --- ^^^^^^^^^ expected `i32`, found `[{integer}; 3]`
|
2019-11-19 05:00:24 +00:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2019-11-15 07:45:30 +00:00
|
|
|
--> $DIR/array-not-vector.rs:7:20
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let _y: &i32 = x;
|
2023-01-03 02:00:33 +00:00
|
|
|
| ---- ^ expected `&i32`, found `&[i32]`
|
2019-11-19 05:00:24 +00:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-11-13 22:16:56 +00:00
|
|
|
= note: expected reference `&i32`
|
|
|
|
found reference `&[i32]`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|