blob: 68ff73a0805921446b7c3b5ce9788857246218d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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);
}
|