Skip to content

Commit 0013141

Browse files
committed
fix: no equivalence between never type and zero-variant enum.
1 parent 4d92113 commit 0013141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/enumerations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ enum ZeroVariants {}
320320
```
321321

322322
r[items.enum.empty.uninhabited]
323-
Zero-variant enums are equivalent to the [never type], but they cannot be
324-
coerced into other types.
323+
Only the [never type] can be coerced into zero-variant enums. Conversely,
324+
zero-variant enums cannot be coerced into any other type.
325325

326326
```rust,compile_fail
327327
# enum ZeroVariants {}

0 commit comments

Comments
 (0)