blob: 51c6b6d7e4ffe236994a6bec788cf33ec883dc7a [file] [log] [blame]
// run-pass
#[derive(Debug)]
struct Foo {
x: isize,
y: isize
}
pub fn main() {
let a = Foo { x: 1, y: 2 };
let c = Foo { x: 4, .. a};
println!("{:?}", c);
}