mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 22:34:28 +00:00
9 lines
181 B
Zig
9 lines
181 B
Zig
const A = struct { x: i32 };
|
|
const A = struct { y: i32 };
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :2:1: error: redeclaration of 'A'
|
|
// :1:1: note: other declaration here
|