2012-12-10 12:37:50 -08:00
|
|
|
// xfail-fast
|
2012-12-10 14:57:01 -08:00
|
|
|
// aux-build:struct_destructuring_cross_crate.rs
|
|
|
|
|
2012-12-10 12:37:50 -08:00
|
|
|
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;
|
|
|
|
}
|