Update exotic-sizes.md

pull/464/head
nomicon-kr 9 months ago committed by GitHub
parent 21b22fedff
commit d60a1a34fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -86,14 +86,11 @@ struct LotsOfNothing {
## 빈 타입 ## 빈 타입
러스트는 또한 *그 타입의 값을 만들 수조차 없는* 타입을 정의하는 것도 지원합니다. 러스트는 또한 *그 타입의 값을 만들 수조차 없는* 타입을 정의하는 것도 지원합니다. 이런 타입들은 타입 측면에서만 말할 수 있고, 값 측면에서는 절대 말할 수 없습니다.
빈 타입은 형이 없는 열거형을 정의함으로써 만들 수 있습니다:
These
types can only be talked about at the type level, and never at the value level.
Empty types can be declared by specifying an enum with no variants:
```rust ```rust
enum Void {} // No variants = EMPTY enum Void {} // 형 없음 = 비어 있음
``` ```
Empty types are even more marginal than ZSTs. The primary motivating example for Empty types are even more marginal than ZSTs. The primary motivating example for

Loading…
Cancel
Save