Skip to content

Commit 8ce5539

Browse files
committed
Add identifier for wildcard fields capturing rule
Let's add a rule identifier for the rule about wildcards and the capturing of fields.
1 parent 6337498 commit 8ce5539

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
@@ -247,6 +247,7 @@ x; // OK: `x` can be moved here.
247247
c();
248248
```
249249

250+
r[type.closure.capture.precision.wildcard.fields]
250251
Fields matched against [RestPattern] (`..`) or [StructPatternEtCetera] (also `..`) are not read, and those fields are not captured.
251252

252253
```rust

0 commit comments

Comments
 (0)