]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0620.stderr
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0620.stderr
1 error[E0620]: cast to unsized type: `&[usize; 2]` as `[usize]`
2   --> $DIR/E0620.rs:2:16
3    |
4 LL |     let _foo = &[1_usize, 2] as [usize];
5    |                ^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 help: consider using an implicit coercion to `&[usize]` instead
8   --> $DIR/E0620.rs:2:16
9    |
10 LL |     let _foo = &[1_usize, 2] as [usize];
11    |                ^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0620`.