Commit 7547e5e
committed
Add forward reference for
The normative rule about destructuring and capturing does not itself
state the exception for `non_exhaustive` enums. That exception
follows below. Let's add an admonition to link down to it so it's not
missed.
It's not great having this duplication; it'd be better if we weren't
restating this fact twice. But it's not clear what to do about this.
The first statement is making a broader statement about tuples,
structs, and single-variant enums. The section that follows below is
focused on discriminants. We'll think about this more later.non_exhaustive exception1 parent be3380e commit 7547e5e
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
208 | 211 | | |
209 | 212 | | |
210 | 213 | | |
| |||
0 commit comments