trpl-zh-cn/listings/ch05-using-structs-to-structure-related-data/no-listing-04-unit-like-structs/src/main.rs

6 lines
66 B
Rust
Raw Normal View History

2022-02-06 16:43:51 +08:00
struct AlwaysEqual;
fn main() {
let subject = AlwaysEqual;
}