diff options
| author | Michael Goulet <michael@errs.io> | 2022-06-25 09:18:25 -0700 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-07-01 17:38:34 +0000 |
| commit | f44ae98ceec2361a47e8822a8f5018d4443018ea (patch) | |
| tree | a1908624ac25cb7243da3aa317335c8b1d120a46 /src/test/ui/array-slice-vec | |
| parent | 5b9775fe17893cba641a071de7e0a7c8f478c41b (diff) | |
| download | rust-f44ae98ceec2361a47e8822a8f5018d4443018ea.tar.gz rust-f44ae98ceec2361a47e8822a8f5018d4443018ea.zip | |
Only label place where type is needed if span is meaningful
Diffstat (limited to 'src/test/ui/array-slice-vec')
| -rw-r--r-- | src/test/ui/array-slice-vec/infer_array_len.stderr | 1 | ||||
| -rw-r--r-- | src/test/ui/array-slice-vec/slice-pat-type-mismatches.stderr | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/test/ui/array-slice-vec/infer_array_len.stderr b/src/test/ui/array-slice-vec/infer_array_len.stderr index 8da6d97251b..919550cac30 100644 --- a/src/test/ui/array-slice-vec/infer_array_len.stderr +++ b/src/test/ui/array-slice-vec/infer_array_len.stderr @@ -4,7 +4,6 @@ error[E0282]: type annotations needed LL | let [_, _] = a.into(); | ^^^^^^ | - = note: type must be known at this point help: consider giving this pattern a type | LL | let [_, _]: _ = a.into(); diff --git a/src/test/ui/array-slice-vec/slice-pat-type-mismatches.stderr b/src/test/ui/array-slice-vec/slice-pat-type-mismatches.stderr index 20a5b99845b..70a4cbebeee 100644 --- a/src/test/ui/array-slice-vec/slice-pat-type-mismatches.stderr +++ b/src/test/ui/array-slice-vec/slice-pat-type-mismatches.stderr @@ -27,8 +27,6 @@ error[E0282]: type annotations needed | LL | [] => {} | ^^ cannot infer type - | - = note: type must be known at this point error: aborting due to 5 previous errors |
