rust/tests/ui/sized
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
..
coinductive-1-gat.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coinductive-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coinductive-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coinductive-2.stderr Update tests 2024-02-07 10:42:01 +08:00
ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs Only check locally for reported errors 2024-06-18 15:43:27 +00:00
ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.stderr On function and method calls in patterns, link to the book 2024-10-06 01:44:59 +00:00
expr-type-error-plus-sized-obligation.rs Silence unecessary !Sized binding error 2024-03-19 21:26:11 +00:00
expr-type-error-plus-sized-obligation.stderr Silence unecessary !Sized binding error 2024-03-19 21:26:11 +00:00
recursive-type-binding.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-type-binding.stderr rename tests 2023-12-26 17:50:30 +01:00
recursive-type-coercion-from-never.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-type-coercion-from-never.stderr add test for coercing never to infinite type 2023-12-26 17:57:33 +01:00
recursive-type-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
stack-overflow-trait-infer-98842.32bit.stderr remove unnecessary ignore-endian-big from stack-overflow-trait-infer test 2024-07-02 16:31:40 +02:00
stack-overflow-trait-infer-98842.64bit.stderr remove unnecessary ignore-endian-big from stack-overflow-trait-infer test 2024-07-02 16:31:40 +02:00
stack-overflow-trait-infer-98842.rs remove unnecessary ignore-endian-big from stack-overflow-trait-infer test 2024-07-02 16:31:40 +02:00
unsized-binding.rs
unsized-binding.stderr Detect * operator on !Sized expression 2024-08-08 17:35:40 +00:00
unsized-str-in-return-expr-arg-and-local.rs Detect * operator on !Sized expression 2024-08-08 17:35:40 +00:00
unsized-str-in-return-expr-arg-and-local.stderr Detect * operator on !Sized expression 2024-08-08 17:35:40 +00:00