Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
redefinition_of_struct.zig
pretty
plain
permalink
blame
history
•
8 lines
•
191 B
1
const A = struct { x: i32 };
2
const A = struct { y: i32 };
3
4
// error
5
//
6
// :1:7: error: duplicate struct member name 'A'
7
// :2:7: note: duplicate name here
8
// :1:1: note: struct declared here