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