bors
1d52972dd8
Auto merge of #125778 - estebank:issue-67100, r=compiler-errors
...
Use parenthetical notation for `Fn` traits
Always use the `Fn(T) -> R` format when printing closure traits instead of `Fn<(T,), Output = R>`.
Address #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-06-03 08:14:03 +00:00
..
2024-02-16 20:02:50 +00:00
2024-03-08 15:54:04 +00:00
2024-05-28 04:54:05 +00:00
2024-05-16 10:00:11 -04:00
2024-05-28 04:54:05 +00:00
2024-05-16 10:00:11 -04:00
2024-05-02 21:56:14 -04:00
2024-05-07 15:58:06 +00:00
2024-05-24 20:32:35 +00:00
2024-05-16 10:00:11 -04:00
2024-05-24 16:20:48 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-29 10:14:02 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-25 11:49:12 -04:00
2024-02-16 20:02:50 +00:00
2023-12-14 15:22:37 +01:00
2024-02-16 20:02:50 +00:00
2024-05-02 21:56:14 -04:00
2024-05-02 21:56:14 -04:00
2024-02-16 20:02:50 +00:00
2023-12-14 15:22:37 +01:00
2024-05-02 21:56:14 -04:00
2024-05-02 21:56:14 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-12-14 15:22:37 +01:00
2024-02-16 20:02:50 +00:00
2024-02-27 20:07:58 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-22 16:35:50 -04:00
2024-03-22 16:35:50 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-01-13 12:46:58 -05:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-12-14 15:22:37 +01:00
2024-02-16 20:02:50 +00:00
2024-02-13 05:08:51 +01:00
2024-02-13 05:08:51 +01:00
2024-02-16 20:02:50 +00:00
2024-05-28 04:44:45 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-29 22:26:54 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-16 21:08:42 -04:00
2024-05-30 15:26:48 +02:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-02 21:56:14 -04:00
2024-05-02 21:56:14 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-16 21:08:42 -04:00
2024-05-16 21:08:42 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-12-14 15:22:37 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-12-14 15:22:37 +01:00
2024-05-06 14:38:35 -04:00
2024-02-16 20:02:50 +00:00
2024-05-30 15:52:29 -04:00
2024-05-30 15:52:29 -04:00
2024-05-30 15:52:29 -04:00
2024-05-30 15:52:29 -04:00
2023-12-14 15:22:37 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-12-14 15:22:37 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-05-30 15:52:29 -04:00
2024-05-30 15:52:29 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-12-14 15:22:37 +01:00
2024-02-16 20:02:50 +00:00