fork/rust

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

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

1.39.0
482 B15 linesraw
1error[E0620]: cast to unsized type: `&[usize; 2]` as `[usize]`
2  --> $DIR/E0620.rs:2:16
3   |
4LL |     let _foo = &[1_usize, 2] as [usize];
5   |                ^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7help: consider using an implicit coercion to `&[usize]` instead
8  --> $DIR/E0620.rs:2:16
9   |
10LL |     let _foo = &[1_usize, 2] as [usize];
11   |                ^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0620`.