File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ r[type.closure.call.fn]
496
496
497
497
r[ type.closure.non-capturing]
498
498
* 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() ` )
500
500
with the matching signature.
501
501
502
502
``` rust
@@ -521,7 +521,7 @@ The [`Future`] returned by the async closure has similar capturing characteristi
521
521
- The ` Future ` includes a mutable capture.
522
522
- The async closure captures by value, except when the value is accessed with a dereference projection.
523
523
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.
525
525
526
526
> ** Example** : The first clause for a mutable capture can be illustrated with the following:
527
527
>
You can’t perform that action at this time.
0 commit comments