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/pattern | |
| parent | 3e25bcb02093bad56beb1dff6be7dd0d80115fb1 (diff) | |
| download | rust-7d1e47aeb0bb1ad2ccf27cb62c25f4ba09d679e4.tar.gz rust-7d1e47aeb0bb1ad2ccf27cb62c25f4ba09d679e4.zip | |
Suggest `: Type` instead of `: _`
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/pat-tuple-bad-type.stderr | 6 | ||||
| -rw-r--r-- | src/test/ui/pattern/rest-pat-semantic-disallowed.stderr | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/pattern/pat-tuple-bad-type.stderr b/src/test/ui/pattern/pat-tuple-bad-type.stderr index 86fd1e0c196..ff45e9fb7a3 100644 --- a/src/test/ui/pattern/pat-tuple-bad-type.stderr +++ b/src/test/ui/pattern/pat-tuple-bad-type.stderr @@ -7,10 +7,10 @@ LL | let x; LL | (..) => {} | ---- type must be known at this point | -help: consider giving `x` an explicit type, where the placeholders `_` are specified +help: consider giving `x` an explicit type, where the placeholder `Type` is specified | -LL | let x: _; - | +++ +LL | let x: Type; + | ++++++ error[E0308]: mismatched types --> $DIR/pat-tuple-bad-type.rs:10:9 diff --git a/src/test/ui/pattern/rest-pat-semantic-disallowed.stderr b/src/test/ui/pattern/rest-pat-semantic-disallowed.stderr index 5bf168a5711..df0aa942fed 100644 --- a/src/test/ui/pattern/rest-pat-semantic-disallowed.stderr +++ b/src/test/ui/pattern/rest-pat-semantic-disallowed.stderr @@ -191,10 +191,10 @@ error[E0282]: type annotations needed LL | let x @ ..; | ^^^^^^ | -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 x @ ..: _; - | +++ +LL | let x @ ..: Type; + | ++++++ error: aborting due to 23 previous errors |
