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
..
2024-05-16 21:08:42 -04:00
2024-05-06 16:04:57 +00:00
2024-05-13 23:57:56 -04:00
2024-03-28 06:41:22 +00:00
2024-03-12 06:03:43 +00:00
2024-03-12 06:03:43 +00:00
2024-03-11 17:19:37 +00:00
2024-03-10 21:18:41 -04:00
2024-03-28 06:41:22 +00:00
2024-03-28 06:41:22 +00:00
2024-03-28 06:41:22 +00:00
2024-03-26 09:26:23 +00:00
2024-03-26 09:26:23 +00:00
2024-03-26 09:26:23 +00:00
2024-04-08 15:08:06 +00:00
2024-05-06 16:04:57 +00:00
2024-04-08 15:00:26 +00:00
2024-05-23 15:52:10 +00:00
2024-05-23 15:52:10 +00:00
2024-03-26 09:26:23 +00:00
2024-03-26 09:26:23 +00:00
2024-03-26 09:26:23 +00:00
2024-04-07 00:25:56 +02:00
2024-04-07 00:25:56 +02:00
2024-04-07 00:48:47 +02:00
2024-04-07 00:48:47 +02:00
2024-03-20 13:00:34 -04:00
2024-03-20 13:00:34 -04:00
2024-04-28 10:23:11 +02:00
2024-02-28 09:54:44 +00:00
2024-02-28 09:54:44 +00:00
2024-02-28 09:54:44 +00:00
2024-03-22 08:27:14 +01:00
2024-03-22 08:27:14 +01:00
2024-03-27 14:02:15 +00:00
2024-03-20 17:29:58 +00:00
2024-03-20 17:29:58 +00:00
2024-03-20 17:29:58 +00:00
2024-03-20 17:29:58 +00:00
2024-03-28 06:00:26 +00:00
2024-03-28 06:00:26 +00:00
2024-03-08 19:08:13 +00:00
2024-05-20 20:16:29 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-05-24 14:01:49 +00:00
2024-05-24 14:01:49 +00:00
2024-04-24 08:05:29 +00:00
2024-04-04 14:53:31 +00:00
2024-05-23 15:52:10 +00:00
2024-04-08 15:00:03 +00:00
2024-04-08 15:00:26 +00:00
2024-04-08 15:00:26 +00:00
2024-03-27 14:02:16 +00:00
2024-04-24 13:12:33 +01:00
2024-05-29 22:26:54 +00:00
2024-03-20 13:00:34 -04:00
2024-03-20 13:00:34 -04:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-03-23 12:01:39 +01:00
2024-03-23 12:01:39 +01:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-05-23 15:52:10 +00:00
2024-05-23 15:52:10 +00:00
2024-03-10 21:18:41 -04:00
2024-02-29 11:08:27 +11:00
2024-02-29 11:08:27 +11:00
2024-03-20 13:00:34 -04:00
2024-03-20 13:00:34 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-05-23 15:48:06 +00:00
2024-05-23 15:48:06 +00:00
2024-05-23 15:48:06 +00:00
2024-05-23 15:48:06 +00:00
2024-05-23 15:48:06 +00:00
2024-05-23 15:48:06 +00:00
2024-02-27 15:57:49 +01:00
2024-02-27 15:57:49 +01:00
2024-03-07 14:26:31 +00:00