Skip to content

Commit 4e4c18f

Browse files
Update posts/inside-rust/2024-08-09-async-closures-call-for-testing.md
1 parent 757977a commit 4e4c18f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/inside-rust/2024-08-09-async-closures-call-for-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ where
3232
This also led to an additional limitation that it's impossible to express higher-ranked async fn bounds using this without boxing (since a higher-ranked trait bound on `F` cannot lead to a higher-ranked type for `Fut`), leading to unnecessary allocations:
3333

3434
```rust
35-
fn async_callback<F, Fut>(callback: F)
35+
fn async_callback<F>(callback: F)
3636
where
3737
F: FnOnce(&str) -> Pin<Box<dyn Future<Output = ()> + '_>>;
3838

0 commit comments

Comments
 (0)