diff options
| author | Michael Goulet <michael@errs.io> | 2024-11-23 05:02:18 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-11-24 03:32:11 +0000 |
| commit | 28970a2cb0885ba7922820d6fb0e14c7e166df9b (patch) | |
| tree | 4757a2157d38d05b941d4854f82ac9dc28974274 /tests/ui/array-slice-vec | |
| parent | e48241b5d15da7491d3c8fd4d87f7a183a15b6b4 (diff) | |
| download | rust-28970a2cb0885ba7922820d6fb0e14c7e166df9b.tar.gz rust-28970a2cb0885ba7922820d6fb0e14c7e166df9b.zip | |
Simplify array length mismatch error reporting
Diffstat (limited to 'tests/ui/array-slice-vec')
| -rw-r--r-- | tests/ui/array-slice-vec/match_arr_unknown_len.stderr | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/ui/array-slice-vec/match_arr_unknown_len.stderr b/tests/ui/array-slice-vec/match_arr_unknown_len.stderr index 3ed0d6bdf3a..f617ff33938 100644 --- a/tests/ui/array-slice-vec/match_arr_unknown_len.stderr +++ b/tests/ui/array-slice-vec/match_arr_unknown_len.stderr @@ -2,10 +2,7 @@ error[E0308]: mismatched types --> $DIR/match_arr_unknown_len.rs:3:9 | LL | [1, 2] => true, - | ^^^^^^ expected `2`, found `N` - | - = note: expected array `[u32; 2]` - found array `[u32; N]` + | ^^^^^^ expected an array with a size of 2, found one with a size of N error: aborting due to 1 previous error |
