Skip to content

Commit 0bac0aa

Browse files
committed
Fix note for non_exhaustive enum read
Updating this note was missed in #2162 which removed the external crate exception. Fixes #2210
1 parent 7446bf9 commit 0bac0aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types/closure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ r[type.closure.capture.precision.wildcard.destructuring]
202202
Destructuring tuples, structs, and single-variant enums does not, by itself, cause a read or the place to be captured.
203203

204204
> [!NOTE]
205-
> Enums marked with [`#[non_exhaustive]`][attributes.type-system.non_exhaustive] from other crates are always treated as having multiple variants. See *[type.closure.capture.precision.discriminants.non_exhaustive]*.
205+
> Enums marked with [`#[non_exhaustive]`][attributes.type-system.non_exhaustive] are always treated as having multiple variants. See *[type.closure.capture.precision.discriminants.non_exhaustive]*.
206206
207207
```rust,no_run
208208
struct S; // A non-`Copy` type.

0 commit comments

Comments
 (0)