]> git.proxmox.com Git - rustc.git/blame - src/test/ui/array-slice-vec/array-not-vector.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / array-slice-vec / array-not-vector.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/array-not-vector.rs:2:19
b7449926
XL
3 |
4LL | let _x: i32 = [1, 2, 3];
60c5eb7d
XL
5 | --- ^^^^^^^^^ expected `i32`, found array `[{integer}; 3]`
6 | |
7 | expected due to this
b7449926
XL
8
9error[E0308]: mismatched types
60c5eb7d 10 --> $DIR/array-not-vector.rs:7:20
b7449926
XL
11 |
12LL | 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
20error: aborting due to 2 previous errors
21
22For more information about this error, try `rustc --explain E0308`.