blob: 4128db0ab9ed7ae53d65ae255d2f93993e061fd0 [file] [log] [blame] [edit]
//@ run-pass
#![allow(dead_code)]
#[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);
}