diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-10-26 14:59:58 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-10-26 15:01:51 -0400 |
| commit | 2b395d4ede2d8ef356c54e1c7c09da88c634be11 (patch) | |
| tree | ddb9806afc26bc55554e20066b29d076bec71f79 /test/compile_errors.zig | |
| parent | 40b7652a6da135aed68a0067f2de60b8b276713c (diff) | |
| download | zig-2b395d4ede2d8ef356c54e1c7c09da88c634be11.tar.gz zig-2b395d4ede2d8ef356c54e1c7c09da88c634be11.zip | |
remove @minValue,@maxValue; add std.math.minInt,maxInt
closes #1466
closes #1476
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index 15c18c612a..b9cb9f158f 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -535,12 +535,12 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { ); cases.add( - "optional pointer to void in extern struct", + "bit count of @IntType too large", \\comptime { - \\ _ = @IntType(false, @maxValue(u32) + 1); + \\ _ = @IntType(false, @import("std").math.maxInt(u32) + 1); \\} , - ".tmp_source.zig:2:40: error: integer value 4294967296 cannot be implicitly casted to type 'u32'", + ".tmp_source.zig:2:57: error: integer value 4294967296 cannot be implicitly casted to type 'u32'", ); cases.add( |
