Skip to content

Commit c1ecf00

Browse files
committed
Add rule identifier to destructuring/capturing claim
Let's give the claim about the effect of destructuring with respect to reads and capturing a rule identifier.
1 parent 851d723 commit c1ecf00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types/closure.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ let c = || match x { // x is not captured
202202
c();
203203
```
204204

205+
r[type.closure.capture.precision.wildcard.destructuring]
205206
Destructuring tuples, structs, and single-variant enums does not, by itself, cause a read or the place to be captured.
206207

207208
```rust,no_run

0 commit comments

Comments
 (0)