diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/error-codes/E0620.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0620.stderr b/src/test/ui/error-codes/E0620.stderr new file mode 100644 index 000000000..65152b2b7 --- /dev/null +++ b/src/test/ui/error-codes/E0620.stderr @@ -0,0 +1,15 @@ +error[E0620]: cast to unsized type: `&[usize; 2]` as `[usize]` + --> $DIR/E0620.rs:2:16 + | +LL | let _foo = &[1_usize, 2] as [usize]; + | ^^^^^^^^^^^^^^^^^^^^^^^^ + | +help: consider using an implicit coercion to `&[usize]` instead + --> $DIR/E0620.rs:2:16 + | +LL | let _foo = &[1_usize, 2] as [usize]; + | ^^^^^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0620`. |