diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-03-31 04:57:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-31 04:57:25 +0200 |
| commit | 4ce6567daa7aab5618aa27f69ceff779cbe2bd7d (patch) | |
| tree | bd85364c5c0891416be494d2c0bdfa9b8e2f1a22 /src/test/ui/pattern | |
| parent | 32c5a57a00c234d5bcbba6c3d5ab638d3dd54494 (diff) | |
| parent | 7b2eaa3d8fb73cd1863665bf4b8c24e3b34eb41b (diff) | |
| download | rust-4ce6567daa7aab5618aa27f69ceff779cbe2bd7d.tar.gz rust-4ce6567daa7aab5618aa27f69ceff779cbe2bd7d.zip | |
Rollup merge of #95263 - compiler-errors:async-block-pretty, r=jackh726
Restore `impl Future<Output = Type>` to async blocks I was sad when I undid some of the code I wrote in #91096 in the PR #95225, so I fixed it here to not print `[async output]`. This PR "manually" normalizes the associated type `<[generator] as Generator>::Return` type which appears very frequently in `impl Future` types that result from async block desugaring.
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/non-structural-match-types.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/pattern/non-structural-match-types.stderr b/src/test/ui/pattern/non-structural-match-types.stderr index 91fed81eaef..e9b56cdc05d 100644 --- a/src/test/ui/pattern/non-structural-match-types.stderr +++ b/src/test/ui/pattern/non-structural-match-types.stderr @@ -4,7 +4,7 @@ error: `[closure@$DIR/non-structural-match-types.rs:9:17: 9:22]` cannot be used LL | const { || {} } => {}, | ^^^^^^^^^^^^^^^ -error: `impl Future` cannot be used in patterns +error: `impl Future<Output = ()>` cannot be used in patterns --> $DIR/non-structural-match-types.rs:12:9 | LL | const { async {} } => {}, |
