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 }; }