Skip to content

Commit d0c64a4

Browse files
authored
Raced on footnote
1 parent 90a8281 commit d0c64a4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

posts/inside-rust/2023-05-03-stabilizing-async-fn-in-trait.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ trait LaunchService {
125125
}
126126
```
127127

128-
Since `async fn` is sugar for a regular function returning `impl Future`, these two syntactic forms will work interchangeably.[^afit-rpitit]
129-
130-
[^afit-rpitit]: The ability to satisfy an `async fn` in a trait with a regular function returning `impl Future` in an impl, and vice versa, is part of [RFC 3425]. It was not in the [original RFC][RFC 3185] for `async fn` in traits, simply because `-> impl Trait` in traits was not supported then.
128+
Since `async fn` is sugar for a regular function returning `impl Future`, these two syntactic forms will work interchangeably.
131129

132130
```rust
133131
trait HealthCheck {

0 commit comments

Comments
 (0)