about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-11-23 05:02:18 +0000
committerMichael Goulet <michael@errs.io>2024-11-24 03:32:11 +0000
commit28970a2cb0885ba7922820d6fb0e14c7e166df9b (patch)
tree4757a2157d38d05b941d4854f82ac9dc28974274 /tests/ui/array-slice-vec
parente48241b5d15da7491d3c8fd4d87f7a183a15b6b4 (diff)
downloadrust-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.stderr5
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