rust/tests/ui/half-open-range-patterns
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
..
exclusive_range_pattern_syntax_collision2.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
exclusive_range_pattern_syntax_collision2.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
exclusive_range_pattern_syntax_collision3.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
exclusive_range_pattern_syntax_collision3.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
exclusive_range_pattern_syntax_collision.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
exclusive_range_pattern_syntax_collision.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
feature-gate-half-open-range-patterns-in-slices.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
feature-gate-half-open-range-patterns-in-slices.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
half-open-range-pats-bad-types.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
half-open-range-pats-bad-types.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
half-open-range-pats-exhaustive-fail.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
half-open-range-pats-exhaustive-fail.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
half-open-range-pats-exhaustive-pass.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
half-open-range-pats-inclusive-dotdotdot-bad-syntax.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
half-open-range-pats-inclusive-match-arrow.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
half-open-range-pats-inclusive-match-arrow.stderr Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
half-open-range-pats-inclusive-no-end.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
half-open-range-pats-inclusive-no-end.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
half-open-range-pats-ref-ambiguous-interp.rs
half-open-range-pats-ref-ambiguous-interp.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
half-open-range-pats-semantics.rs Update f16/f128 FIXMEs that needed (NEG_)INFINITY 2024-07-08 18:02:14 -04:00
half-open-range-pats-syntactic-pass.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
half-open-range-pats-thir-lower-empty.rs Update f16/f128 FIXMEs that needed (NEG_)INFINITY 2024-07-08 18:02:14 -04:00
half-open-range-pats-thir-lower-empty.stderr Update f16/f128 FIXMEs that needed (NEG_)INFINITY 2024-07-08 18:02:14 -04:00
pat-tuple-4.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
pat-tuple-5.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
pat-tuple-5.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
range_pat_interactions0.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
range_pat_interactions1.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
range_pat_interactions1.stderr On function and method calls in patterns, link to the book 2024-10-06 01:44:59 +00:00
range_pat_interactions2.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
range_pat_interactions2.stderr On function and method calls in patterns, link to the book 2024-10-06 01:44:59 +00:00
range_pat_interactions3.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
range_pat_interactions3.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
slice_pattern_syntax_problem0.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
slice_pattern_syntax_problem0.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
slice_pattern_syntax_problem1.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
slice_pattern_syntax_problem1.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
slice_pattern_syntax_problem2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00