diff options
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index 6fc2fa65e7..eef5bc202c 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -5397,7 +5397,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { \\ var x = Small.One; \\} , - "tmp.zig:1:21: error: 'u2' too small to hold all bits; must be at least 'u3'", + "tmp.zig:6:5: error: enumeration value 4 too large for type 'u2'" ); cases.add( @@ -5449,22 +5449,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { ); cases.add( - "non unsigned integer enum tag type", - \\const Small = enum(i2) { - \\ One, - \\ Two, - \\ Three, - \\ Four, - \\}; - \\ - \\export fn entry() void { - \\ var y = Small.Two; - \\} - , - "tmp.zig:1:20: error: expected unsigned integer, found 'i2'", - ); - - cases.add( "struct fields with value assignments", \\const MultipleChoice = struct { \\ A: i32 = 20, |
