diff options
| author | Veera <sveera.2001@gmail.com> | 2023-12-20 22:53:56 -0500 |
|---|---|---|
| committer | Veera <sveera.2001@gmail.com> | 2023-12-20 22:53:56 -0500 |
| commit | 286f2d819eec03525992b8e4aeb201c3fb987a88 (patch) | |
| tree | 8ecaf7adf5b1365df5d52323a41d8cb614f7e65a /tests/ui/error-codes | |
| parent | e6e195e27e6d5d12a135e4a40472c253bd63a77f (diff) | |
| download | rust-286f2d819eec03525992b8e4aeb201c3fb987a88.tar.gz rust-286f2d819eec03525992b8e4aeb201c3fb987a88.zip | |
Update existing tests
Diffstat (limited to 'tests/ui/error-codes')
| -rw-r--r-- | tests/ui/error-codes/E0620.stderr | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/ui/error-codes/E0620.stderr b/tests/ui/error-codes/E0620.stderr index 5bc8903624c..644ba813c96 100644 --- a/tests/ui/error-codes/E0620.stderr +++ b/tests/ui/error-codes/E0620.stderr @@ -2,13 +2,9 @@ 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]; - | ^^^^^^^^^^^^^^^^^^^^^^^^ + | ^^^^^^^^^^^^^^^^^------- + | | + | help: try casting to a reference instead: `&[usize]` error: aborting due to 1 previous error |
