Skip to content

Commit 8eb71da

Browse files
committed
Async clarifications from compiler-errors
1 parent 5a8b949 commit 8eb71da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/types/closure.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ r[type.closure.call.fn]
496496
497497
r[type.closure.non-capturing]
498498
*Non-capturing closures* are closures that don't capture anything from their
499-
environment. Non-async closures can be coerced to function pointers (e.g., `fn()`)
499+
environment. Non-async, non-capturing closures can be coerced to function pointers (e.g., `fn()`)
500500
with the matching signature.
501501

502502
```rust
@@ -521,7 +521,7 @@ The [`Future`] returned by the async closure has similar capturing characteristi
521521
- The `Future` includes a mutable capture.
522522
- The async closure captures by value, except when the value is accessed with a dereference projection.
523523

524-
If the async closure is lending to its `Future`, then [`FnMut`] and [`Fn`] are *not* implemented.
524+
If the async closure is lending to its `Future`, then [`FnMut`] and [`Fn`] are *not* implemented. [`FnOnce`] is always implemented.
525525

526526
> **Example**: The first clause for a mutable capture can be illustrated with the following:
527527
>

0 commit comments

Comments
 (0)