summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-2463.rs
blob: d24a47c53d9ee9f1bed6e0390256448052480f21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

struct Pair { f: isize, g: isize }

pub fn main() {

    let x = Pair {
        f: 0,
        g: 0,
    };

    let _y = Pair {
        f: 1,
        g: 1,
        .. x
    };

    let _z = Pair {
        f: 1,
        .. x
    };

}