diff options
| author | Vexu <git@vexu.eu> | 2020-04-18 19:44:59 +0300 |
|---|---|---|
| committer | Vexu <git@vexu.eu> | 2020-04-18 23:56:05 +0300 |
| commit | b6fe839248751f6e2cfbdbe2cc31e47aee154555 (patch) | |
| tree | 1278697f1d9095eba22bc9cf1d4c4033b7fe6f24 /test/compile_errors.zig | |
| parent | fff00c3bbb9ed211f46eb1f1be07ebab84bc8d9d (diff) | |
| download | zig-b6fe839248751f6e2cfbdbe2cc31e47aee154555.tar.gz zig-b6fe839248751f6e2cfbdbe2cc31e47aee154555.zip | |
update std lib to decls being disallowed between fields
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index 6c120330e7..22c473e227 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -4,17 +4,20 @@ const std = @import("std"); pub fn addCases(cases: *tests.CompileErrorContext) void { cases.add("declaration between fields", \\const S = struct { - \\ a: usize, \\ const foo = 2; \\ const bar = 2; \\ const baz = 2; + \\ a: usize, + \\ const foo1 = 2; + \\ const bar1 = 2; + \\ const baz1 = 2; \\ b: usize, \\}; \\comptime { \\ _ = S; \\} , &[_][]const u8{ - "tmp.zig:3:5: error: declarations are not allowed between container fields", + "tmp.zig:6:5: error: declarations are not allowed between container fields", }); cases.add("non-extern function with var args", |
