fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
591 B21 linesraw
1error[E0308]: mismatched types
2  --> $DIR/array-not-vector.rs:2:19
3   |
4LL |     let _x: i32 = [1, 2, 3];
5   |                   ^^^^^^^^^ expected i32, found array of 3 elements
6   |
7   = note: expected type `i32`
8              found type `[{integer}; 3]`
9
10error[E0308]: mismatched types
11  --> $DIR/array-not-vector.rs:9:20
12   |
13LL |     let _y: &i32 = x;
14   |                    ^ expected i32, found slice
15   |
16   = note: expected type `&i32`
17              found type `&[i32]`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.