mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00
13 lines
148 B
Rust
13 lines
148 B
Rust
![]() |
mod m {
|
||
|
pub struct S {
|
||
|
x: int,
|
||
|
y: int
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let x = m::S { x: 1, y: 2 };
|
||
|
let m::S { x: a, y: b } = x;
|
||
|
}
|
||
|
|