mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 05:13:29 +08:00
11 lines
194 B
Rust
11 lines
194 B
Rust
fn main() {
|
|
struct Point {
|
|
x: i32,
|
|
y: i32,
|
|
}
|
|
|
|
// ANCHOR: here
|
|
let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 });
|
|
// ANCHOR_END: here
|
|
}
|