zig/test/cases/compile_errors/redefinition_of_struct.zig

10 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