struct S { a: i32, b: i32, } struct S1 { c: i32, } fn main() { let v = S{a:1,b:2}; let S{a:v1,b:v2} = v; println!("{} {}", v1, v2) }