rust/tests
Esteban Küber a7e32a5319 Provide suggestion when encountering match () { () => 1 } + match () { () => 1 }
```
error[E0308]: mismatched types
  --> $DIR/expr-as-stmt.rs:69:5
   |
LL |     match () { () => 1 } + match () { () => 1 }
   |     ^^^^^^^^^^^^^^^^^^^^ expected `()`, found integer
   |
help: consider using a semicolon here
   |
LL |     match () { () => 1 }; + match () { () => 1 }
   |                         +
help: alternatively, parentheses are required to parse this as an expression
   |
LL |     (match () { () => 1 }) + match () { () => 1 }
   |     +                    +
```

Parentheses are needed for the `match` to be unambiguously parsed as an expression and not a statement when chaining with binops that are also unops.
2025-08-31 00:42:58 +00:00
..
assembly-llvm Rollup merge of #145884 - clubby789:test-mcount, r=Mark-Simulacrum 2025-08-29 12:54:11 +10:00
auxiliary Set NumRegisterParameters LLVM module flag to N when -Zregparm=N is 2025-08-13 17:37:30 +02:00
codegen-llvm Use captures(address) instead of captures(none) for indirect args 2025-08-26 16:16:23 +02:00
codegen-units Auto merge of #142893 - Mark-Simulacrum:no-const-collect, r=oli-obk 2025-06-27 12:57:05 +00:00
coverage coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
coverage-run-rustdoc
crashes Changes to the uitests 2025-08-27 20:25:18 +02:00
debuginfo tests: Ignore basic-stepping.rs on riscv64 2025-08-29 08:11:48 +00:00
incremental Bless incremental tests. 2025-07-13 13:50:01 +00:00
mir-opt Use -Zmir-opt-level=0 in tests for MIR building 2025-08-26 23:42:38 -04:00
pretty Update autodiff tests for the new intrinsics impl 2025-08-14 18:33:43 +00:00
run-make Update tests/run-make/rustdoc-default-output/ output 2025-08-23 12:15:37 +02:00
rustdoc Add tests for doc(attribute = "...") attribute 2025-08-28 15:56:30 +02:00
rustdoc-gui Add tests for doc(attribute = "...") attribute 2025-08-28 15:56:30 +02:00
rustdoc-js rustdoc: add tests for raw pointers in type-based search 2025-08-21 17:50:12 -05:00
rustdoc-js-std tests/rustdoc-js-std/parser-errors.js: remove syntax that is now valid 2025-08-21 20:50:33 -05:00
rustdoc-json Add tests for doc(attribute = "...") attribute 2025-08-28 15:56:30 +02:00
rustdoc-ui Add ui test for unsupported doc(attribute = "...") case for attributes with namespace 2025-08-28 18:24:58 +02:00
ui Provide suggestion when encountering match () { () => 1 } + match () { () => 1 } 2025-08-31 00:42:58 +00:00
ui-fulldeps Switch next solver to use a specific associated type for trait def id 2025-08-25 16:52:08 +03:00
COMPILER_TESTS.md