]>
Commit | Line | Data |
---|---|---|
83c7162d XL |
1 | struct Point { |
2 | pub x: u64, | |
3 | pub y: u64, | |
9e0c209e | 4 | } |
1a4d82fc | 5 | |
83c7162d XL |
6 | const TEMPLATE: Point = Point { |
7 | x: 0, | |
8 | y: 0 | |
9 | }; | |
10 | ||
7453a54e | 11 | fn main() { |
83c7162d XL |
12 | let _ = || { |
13 | Point { | |
14 | nonexistent: 0, | |
15 | //~^ ERROR struct `Point` has no field named `nonexistent` | |
16 | ..TEMPLATE | |
17 | } | |
18 | }; | |
223e47cc | 19 | } |