diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2022-12-10 18:40:04 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2022-12-13 10:39:44 -0800 |
| commit | 7d1e47aeb0bb1ad2ccf27cb62c25f4ba09d679e4 (patch) | |
| tree | 9c34c96d5df32f7dd18a68abd35c49d690ee33d2 /src/test/ui/array-slice-vec | |
| parent | 3e25bcb02093bad56beb1dff6be7dd0d80115fb1 (diff) | |
| download | rust-7d1e47aeb0bb1ad2ccf27cb62c25f4ba09d679e4.tar.gz rust-7d1e47aeb0bb1ad2ccf27cb62c25f4ba09d679e4.zip | |
Suggest `: Type` instead of `: _`
Diffstat (limited to 'src/test/ui/array-slice-vec')
| -rw-r--r-- | src/test/ui/array-slice-vec/infer_array_len.stderr | 6 |
1 files changed, 3 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 bd757be126c..11a07164e8c 100644 --- a/src/test/ui/array-slice-vec/infer_array_len.stderr +++ b/src/test/ui/array-slice-vec/infer_array_len.stderr @@ -4,10 +4,10 @@ error[E0282]: type annotations needed LL | let [_, _] = a.into(); | ^^^^^^ | -help: consider giving this pattern a type, where the placeholders `_` are specified +help: consider giving this pattern a type, where the placeholder `Type` is specified | -LL | let [_, _]: _ = a.into(); - | +++ +LL | let [_, _]: Type = a.into(); + | ++++++ error: aborting due to previous error |
