Skip to content

Commit efdf702

Browse files
mixy1obi1kenobi
andauthored
Reword first sentence to be more specific.
Co-authored-by: Predrag Gruevski <[email protected]>
1 parent 2cf703d commit efdf702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes/type_system.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ match message {
163163
}
164164
```
165165

166-
However, casting non-exhaustive types from foreign crates is generally disallowed, except when dealing with enums that have no non-exhaustive variants.
166+
It's also not allowed to use numeric casts (`as`) on enums that contain any non-exhaustive variants.
167167

168168
For example, the following enum can be cast because it doesn't contain any non-exhaustive variants:
169169
```rust, ignore

0 commit comments

Comments
 (0)