]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0620.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0620.stderr
1 error[E0620]: cast to unsized type: `&[usize; 2]` as `[usize]`
2 --> $DIR/E0620.rs:12:16
3 |
4 LL | let _foo = &[1_usize, 2] as [usize]; //~ ERROR E0620
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 help: consider using an implicit coercion to `&[usize]` instead
8 --> $DIR/E0620.rs:12:16
9 |
10 LL | let _foo = &[1_usize, 2] as [usize]; //~ ERROR E0620
11 | ^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0620`.