diff options
| author | Michael Goulet <michael@errs.io> | 2022-03-30 19:26:35 -0700 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-03-30 19:26:35 -0700 |
| commit | 7b2eaa3d8fb73cd1863665bf4b8c24e3b34eb41b (patch) | |
| tree | f44d3fd87db8e298f7a84c5cef0f80e5a7744c58 /src/test/ui/pattern | |
| parent | a40c595695bff3bfb373a8a3355ae4bd4ea64608 (diff) | |
| download | rust-7b2eaa3d8fb73cd1863665bf4b8c24e3b34eb41b.tar.gz rust-7b2eaa3d8fb73cd1863665bf4b8c24e3b34eb41b.zip | |
Restore `impl Future<Output = Type>` to async blocks
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 {} } => {}, |
