fork/rust

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

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

1.39.0
670 B21 linesraw
1error[E0308]: mismatched types
2  --> $DIR/dst-bad-coerce4.rs:12:32
3   |
4LL |     let f2: &Fat<[isize; 3]> = f1;
5   |                                ^^ expected array of 3 elements, found slice
6   |
7   = note: expected type `&Fat<[isize; 3]>`
8              found type `&Fat<[isize]>`
9
10error[E0308]: mismatched types
11  --> $DIR/dst-bad-coerce4.rs:20:30
12   |
13LL |     let f2: &([isize; 3],) = f1;
14   |                              ^^ expected array of 3 elements, found slice
15   |
16   = note: expected type `&([isize; 3],)`
17              found type `&([isize],)`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.