]> git.lizzy.rs Git - rust.git/blob - src/test/ui/array-not-vector.stderr
Rollup merge of #66183 - Centril:empty-vis-trait-decl, r=petrochenkov
[rust.git] / src / test / ui / array-not-vector.stderr
1 error[E0308]: mismatched types
2   --> $DIR/array-not-vector.rs:2:19
3    |
4 LL |     let _x: i32 = [1, 2, 3];
5    |                   ^^^^^^^^^ expected `i32`, found array `[{integer}; 3]`
6
7 error[E0308]: mismatched types
8   --> $DIR/array-not-vector.rs:7:20
9    |
10 LL |     let _y: &i32 = x;
11    |                    ^ expected `i32`, found slice `[i32]`
12    |
13    = note: expected reference `&i32`
14               found reference `&[i32]`
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0308`.