summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs-enums/module-qualified-struct-destructure.rs
blob: 57be37cdf2bbc9b3ae180f71b6c660d26e71484a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass
// pretty-expanded FIXME #23616

mod m {
    pub struct S {
        pub x: isize,
        pub y: isize
    }
}

pub fn main() {
    let x = m::S { x: 1, y: 2 };
    let m::S { x: _a, y: _b } = x;
}