]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/array-not-vector.stderr
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / array-slice-vec / 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    |             expected due to this
8
9 error[E0308]: mismatched types
10   --> $DIR/array-not-vector.rs:7:20
11    |
12 LL |     let _y: &i32 = x;
13    |             ----   ^ expected `i32`, found slice `[i32]`
14    |             |
15    |             expected due to this
16    |
17    = note: expected reference `&i32`
18               found reference `&[i32]`
19
20 error: aborting due to 2 previous errors
21
22 For more information about this error, try `rustc --explain E0308`.