rust/tests/ui/parser/recover
Esteban Küber 7f5548fa8b On function and method calls in patterns, link to the book
```
error: expected a pattern, found an expression
 --> f889.rs:3:13
  |
3 |     let (x, y.drop()) = (1, 2); //~ ERROR
  |             ^^^^^^^^ not a pattern
  |
  = note: arbitrary expressions are not allowed in patterns: <https://doc.rust-lang.org/book/ch18-00-patterns.html>

error[E0532]: expected a pattern, found a function call
 --> f889.rs:2:13
  |
2 |     let (x, drop(y)) = (1, 2); //~ ERROR
  |             ^^^^ not a tuple struct or tuple variant
  |
  = note: function calls are not allowed in patterns: <https://doc.rust-lang.org/book/ch18-00-patterns.html>
```

Fix #97200.
2024-10-06 01:44:59 +00:00
..
binding-name-starting-with-number.rs
binding-name-starting-with-number.stderr
recover-assoc-const-constraint.rs
recover-assoc-const-constraint.stderr
recover-assoc-eq-missing-term.rs
recover-assoc-eq-missing-term.stderr
recover-assoc-lifetime-constraint.rs
recover-assoc-lifetime-constraint.stderr
recover-colon-instead-of-eq-in-local.rs
recover-colon-instead-of-eq-in-local.stderr
recover-const-async-fn-ptr.rs
recover-const-async-fn-ptr.stderr
recover-enum2.rs
recover-enum2.stderr
recover-enum.rs
recover-enum.stderr
recover-field-extra-angle-brackets-in-struct-with-a-field.rs
recover-field-extra-angle-brackets-in-struct-with-a-field.stderr
recover-field-extra-angle-brackets.rs
recover-field-extra-angle-brackets.stderr
recover-field-semi.rs
recover-field-semi.stderr
recover-fn-ptr-with-generics.rs
recover-fn-ptr-with-generics.stderr
recover-fn-trait-from-fn-kw.rs
recover-fn-trait-from-fn-kw.stderr
recover-for-loop-parens-around-head.fixed
recover-for-loop-parens-around-head.rs
recover-for-loop-parens-around-head.stderr
recover-from-bad-variant.rs
recover-from-bad-variant.stderr
recover-from-homoglyph.rs
recover-from-homoglyph.stderr
recover-labeled-non-block-expr.fixed
recover-labeled-non-block-expr.rs
recover-labeled-non-block-expr.stderr
recover-missing-semi-before-item.fixed
recover-missing-semi-before-item.rs
recover-missing-semi-before-item.stderr
recover-missing-semi.rs
recover-missing-semi.stderr
recover-parens-around-match-arm-head.fixed
recover-parens-around-match-arm-head.rs
recover-parens-around-match-arm-head.stderr
recover-pat-exprs.rs
recover-pat-exprs.stderr
recover-pat-issues.rs
recover-pat-issues.stderr
recover-pat-lets.rs
recover-pat-lets.stderr
recover-pat-ranges.rs
recover-pat-ranges.stderr
recover-pat-wildcards.rs
recover-pat-wildcards.stderr
recover-quantified-closure.rs
recover-quantified-closure.stderr
recover-range-pats.rs
recover-range-pats.stderr
recover-ref-dyn-mut.rs
recover-ref-dyn-mut.stderr
recover-struct.rs
recover-struct.stderr
recover-tuple-pat.rs
recover-tuple-pat.stderr
recover-tuple.rs
recover-tuple.stderr
recover-unticked-labels.fixed
recover-unticked-labels.rs
recover-unticked-labels.stderr
recover-where-clause-before-tuple-struct-body-0.fixed
recover-where-clause-before-tuple-struct-body-0.rs
recover-where-clause-before-tuple-struct-body-0.stderr
recover-where-clause-before-tuple-struct-body-1.rs
recover-where-clause-before-tuple-struct-body-1.stderr
turbofish-arg-with-stray-colon.rs
turbofish-arg-with-stray-colon.stderr
unicode-double-equals-recovery.rs
unicode-double-equals-recovery.stderr