mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
10 lines
240 B
Rust
10 lines
240 B
Rust
|
// xfail-fast
|
||
|
extern mod struct_destructuring_cross_crate;
|
||
|
|
||
|
fn main() {
|
||
|
let x = struct_destructuring_cross_crate::S { x: 1, y: 2 };
|
||
|
let struct_destructuring_cross_crate::S { x: a, y: b } = x;
|
||
|
assert a == 1;
|
||
|
assert b == 2;
|
||
|
}
|