Skip to content

Commit

Permalink
cases: correct after ziglang#18816
Browse files Browse the repository at this point in the history
I changed an error messages and fixed a minor bug while implementing
this proposal, which led to a few compile error cases failing.
  • Loading branch information
mlugg committed Mar 6, 2024
1 parent e043fe4 commit e1d8187
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/cases/compile_errors/reify_struct.zig
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ comptime {
// target=native
//
// :2:5: error: tuple cannot have non-numeric field 'foo'
// :16:5: error: tuple field 3 exceeds tuple field count
// :16:5: error: tuple field name '3' does not match field index 0
// :30:5: error: comptime field without default initialization value
// :44:5: error: extern struct fields cannot be marked comptime
// :58:5: error: alignment in a packed struct field must be set to 0
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export fn entry() void {
// backend=stage2
// target=native
//
// :13:16: error: enum field(s) missing in union
// :13:16: error: enum fields missing in union
// :1:13: note: field 'arst' missing, declared here
// :1:13: note: enum declared here
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export fn entry() void {
// backend=stage2
// target=native
//
// :12:16: error: enum field(s) missing in union
// :12:16: error: enum fields missing in union
// :1:13: note: field 'signed' missing, declared here
// :1:13: note: field 'unsigned' missing, declared here
// :1:13: note: enum declared here

0 comments on commit e1d8187

Please sign in to comment.