#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
const Foo = error{
    Bar,
    Bar,
};
export fn entry() void {
    const a: Foo = undefined;
    _ = a;
}
#}
#update
#check errors {
test.zig:3:5: error: duplicate error set field 'Bar'
test.zig:2:5: note: previous declaration here
#}
