diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-27 16:37:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-27 16:37:48 +0100 |
| commit | b7657e9cecaf46128702c5a221c3a84fd6e7cae6 (patch) | |
| tree | b8df1df6806743449140c9966f285e3c166d00cd /src/test/ui/parser/intersection-patterns-2.stderr | |
| parent | d5b975cb7c227b5eec4a83c4651d1225f479c230 (diff) | |
| parent | 668d9fd7bc5094a5df76adde70d5947cb6705281 (diff) | |
| download | rust-b7657e9cecaf46128702c5a221c3a84fd6e7cae6.tar.gz rust-b7657e9cecaf46128702c5a221c3a84fd6e7cae6.zip | |
Rollup merge of #106066 - JohnTitor:rm-bindings-after-at-fixme, r=compiler-errors
Always suggest as `MachineApplicable` in `recover_intersection_pat` This resolves one FIXME in `recover_intersection_pat` by always applying `MachineApplicable` when suggesting, as `bindings_after_at` is now stable. This also separates a test to apply `// run-rustfix`. Signed-off-by: Yuki Okushi <jtitor@2k36.org>
Diffstat (limited to 'src/test/ui/parser/intersection-patterns-2.stderr')
| -rw-r--r-- | src/test/ui/parser/intersection-patterns-2.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/parser/intersection-patterns-2.stderr b/src/test/ui/parser/intersection-patterns-2.stderr new file mode 100644 index 00000000000..f7e78814ca5 --- /dev/null +++ b/src/test/ui/parser/intersection-patterns-2.stderr @@ -0,0 +1,13 @@ +error: left-hand side of `@` must be a binding + --> $DIR/intersection-patterns-2.rs:13:9 + | +LL | Some(x) @ Some(y) => {} + | -------^^^------- + | | | + | | also a pattern + | interpreted as a pattern, not a binding + | + = note: bindings are `x`, `mut x`, `ref x`, and `ref mut x` + +error: aborting due to previous error + |
