2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2012-12-07 19:09:25 -08:00
|
|
|
mod m {
|
|
|
|
pub struct S {
|
2015-03-25 17:06:52 -07:00
|
|
|
pub x: isize,
|
|
|
|
pub y: isize
|
2012-12-07 19:09:25 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2012-12-07 19:09:25 -08:00
|
|
|
let x = m::S { x: 1, y: 2 };
|
2013-08-17 08:37:42 -07:00
|
|
|
let m::S { x: _a, y: _b } = x;
|
2012-12-07 19:09:25 -08:00
|
|
|
}
|