mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 14:53:08 +00:00
11 lines
226 B
Zig
11 lines
226 B
Zig
const A = struct { x: i32 };
|
|
const A = struct { y: i32 };
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :1:7: error: duplicate struct member name 'A'
|
|
// :2:7: note: duplicate name here
|
|
// :1:1: note: struct declared here
|