| ... | @@ -34,9 +34,9 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { | ... | @@ -34,9 +34,9 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { |
| 34 | \\ const c: *S = &.{}; | 34 | \\ const c: *S = &.{}; |
| 35 | \\} | 35 | \\} |
| 36 | , &[_][]const u8{ | 36 | , &[_][]const u8{ |
| 37 | "mp.zig:2:31: error: expected type '[][]const u8', found '*const struct:2:31'", | 37 | "tmp.zig:2:31: error: expected type '[][]const u8', found '*const struct:2:31'", |
| 38 | "mp.zig:5:33: error: expected type '*[2][]const u8', found '*const struct:5:33'", | 38 | "tmp.zig:5:33: error: expected type '*[2][]const u8', found '*const struct:5:33'", |
| 39 | "mp.zig:9:21: error: expected type '*S', found '*const struct:9:21'", | 39 | "tmp.zig:9:21: error: expected type '*S', found '*const struct:9:21'", |
| 40 | }); | 40 | }); |
| 41 | | 41 | |
| 42 | cases.add("@Type() union payload is undefined", | 42 | cases.add("@Type() union payload is undefined", |
| ... | @@ -8416,6 +8416,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { | ... | @@ -8416,6 +8416,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { |
| 8416 | \\ var sequence = "repeat".*** 10; | 8416 | \\ var sequence = "repeat".*** 10; |
| 8417 | \\} | 8417 | \\} |
| 8418 | , &[_][]const u8{ | 8418 | , &[_][]const u8{ |
| 8419 | "tmp.zig:2:30: error: `.*` can't be followed by `*`. Are you missing a space?", | 8419 | "tmp.zig:2:30: error: `.*` cannot be followed by `*`. Are you missing a space?", |
| 8420 | }); | 8420 | }); |
| 8421 | } | 8421 | } |