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 Suggest assoc ty bound on lifetime in eq constraint 2024-03-23 00:17:30 +01:00
recover-assoc-lifetime-constraint.stderr Suggest assoc ty bound on lifetime in eq constraint 2024-03-23 00:17:30 +01:00
recover-colon-instead-of-eq-in-local.rs Cancel parsing ever made during recovery 2024-03-06 21:59:03 +00:00
recover-colon-instead-of-eq-in-local.stderr Cancel parsing ever made during recovery 2024-03-06 21:59:03 +00:00
recover-const-async-fn-ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-const-async-fn-ptr.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
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 Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
recover-field-extra-angle-brackets.rs
recover-field-extra-angle-brackets.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-for-loop-parens-around-head.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-for-loop-parens-around-head.stderr
recover-from-bad-variant.rs
recover-from-bad-variant.stderr Suggest the struct variant pattern syntax on usage of unit variant pattern for a struct variant 2024-08-28 22:55:57 +09:00
recover-from-homoglyph.rs
recover-from-homoglyph.stderr
recover-labeled-non-block-expr.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-labeled-non-block-expr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-labeled-non-block-expr.stderr Fix ... in multline code-skips in suggestions 2024-06-20 04:25:17 +00:00
recover-missing-semi-before-item.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-missing-semi-before-item.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-missing-semi-before-item.stderr Make ; suggestions inline 2024-07-12 03:22:32 +00:00
recover-missing-semi.rs
recover-missing-semi.stderr Make ; suggestions inline 2024-07-12 03:22:32 +00:00
recover-parens-around-match-arm-head.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-parens-around-match-arm-head.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-parens-around-match-arm-head.stderr
recover-pat-exprs.rs Add suggestions for expressions in patterns 2024-09-18 20:38:43 +02:00
recover-pat-exprs.stderr On function and method calls in patterns, link to the book 2024-10-06 01:44:59 +00:00
recover-pat-issues.rs Recover more expressions in patterns 2024-09-18 20:37:56 +02:00
recover-pat-issues.stderr On function and method calls in patterns, link to the book 2024-10-06 01:44:59 +00:00
recover-pat-lets.rs Recover more expressions in patterns 2024-09-18 20:37:56 +02:00
recover-pat-lets.stderr On function and method calls in patterns, link to the book 2024-10-06 01:44:59 +00:00
recover-pat-ranges.rs Recover more expressions in patterns 2024-09-18 20:37:56 +02:00
recover-pat-ranges.stderr On function and method calls in patterns, link to the book 2024-10-06 01:44:59 +00:00
recover-pat-wildcards.rs Recover more expressions in patterns 2024-09-18 20:37:56 +02:00
recover-pat-wildcards.stderr On function and method calls in patterns, link to the book 2024-10-06 01:44:59 +00:00
recover-quantified-closure.rs
recover-quantified-closure.stderr
recover-range-pats.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
recover-range-pats.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
recover-ref-dyn-mut.rs
recover-ref-dyn-mut.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
recover-struct.rs
recover-struct.stderr
recover-tuple-pat.rs
recover-tuple-pat.stderr
recover-tuple.rs
recover-tuple.stderr
recover-unticked-labels.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-unticked-labels.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recover-unticked-labels.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
recover-where-clause-before-tuple-struct-body-0.fixed Revert "Rollup merge of #125572 - mu001999-contrib:dead/enhance, r=pnkfelix" 2024-08-03 07:57:31 -04:00
recover-where-clause-before-tuple-struct-body-0.rs Revert "Rollup merge of #125572 - mu001999-contrib:dead/enhance, r=pnkfelix" 2024-08-03 07:57:31 -04:00
recover-where-clause-before-tuple-struct-body-0.stderr Revert "Rollup merge of #125572 - mu001999-contrib:dead/enhance, r=pnkfelix" 2024-08-03 07:57:31 -04:00
recover-where-clause-before-tuple-struct-body-1.rs
recover-where-clause-before-tuple-struct-body-1.stderr
turbofish-arg-with-stray-colon.rs Make sure we consume a generic arg when checking mistyped turbofish 2024-05-09 10:47:14 -04:00
turbofish-arg-with-stray-colon.stderr Make sure we consume a generic arg when checking mistyped turbofish 2024-05-09 10:47:14 -04:00
unicode-double-equals-recovery.rs Fix ICE in suggestion caused by being recovered as == 2024-07-18 17:47:31 +00:00
unicode-double-equals-recovery.stderr Fix ICE in suggestion caused by being recovered as == 2024-07-18 17:47:31 +00:00