rust/tests
Esteban Küber e6bd6c2044 Use parenthetical notation for Fn traits
Always use the `Fn(T) -> R` format when printing closure traits instead of `Fn<(T,), Output = R>`.

Fix #67100:

```
error[E0277]: expected a `Fn()` closure, found `F`
 --> file.rs:6:13
  |
6 |     call_fn(f)
  |     ------- ^ expected an `Fn()` closure, found `F`
  |     |
  |     required by a bound introduced by this call
  |
  = note: wrap the `F` in a closure with no arguments: `|| { /* code */ }`
note: required by a bound in `call_fn`
 --> file.rs:1:15
  |
1 | fn call_fn<F: Fn() -> ()>(f: &F) {
  |               ^^^^^^^^^^ required by this bound in `call_fn`
help: consider further restricting this bound
  |
5 | fn call_any<F: std::any::Any + Fn()>(f: &F) {
  |                              ++++++
```
2024-05-29 22:26:54 +00:00
..
assembly
auxiliary
codegen Auto merge of #122662 - Mark-Simulacrum:optional-drop, r=bjorn3 2024-05-28 16:04:14 +00:00
codegen-units Omit non-needs_drop drop_in_place in vtables 2024-05-27 16:26:56 -04:00
coverage
coverage-run-rustdoc
crashes Rollup merge of #125640 - fmease:plz-no-stringify, r=estebank 2024-05-28 02:07:48 -07:00
debuginfo
incremental
mir-opt Create const block DefIds in typeck instead of ast lowering 2024-05-28 13:38:43 +00:00
pretty Create const block DefIds in typeck instead of ast lowering 2024-05-28 13:38:43 +00:00
run-make Rollup merge of #125542 - GuillaumeGomez:migrate-rustdoc-verify-output-files, r=jieyouxu 2024-05-27 20:43:25 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Auto merge of #125599 - camelid:clarify-stability, r=notriddle,GuillaumeGomez 2024-05-27 18:42:42 +00:00
rustdoc-gui
rustdoc-js
rustdoc-js-std
rustdoc-json rustdoc-json: Add test for keywords with --document-private-items 2024-05-24 16:40:20 +00:00
rustdoc-ui non_local_defs: improve exception note for impl and macro_rules! 2024-05-27 23:59:18 +02:00
ui Use parenthetical notation for Fn traits 2024-05-29 22:26:54 +00:00
ui-fulldeps Auto merge of #125410 - fmease:adj-lint-diag-api, r=nnethercote 2024-05-27 08:44:12 +00:00
COMPILER_TESTS.md