Commit b0b9c3c2dc
Changed files (2)
src
test
src/AstGen.zig
@@ -4604,7 +4604,7 @@ fn tryExpr(
const astgen = parent_gz.astgen;
const fn_block = astgen.fn_block orelse {
- return astgen.failNode(node, "invalid 'try' outside function scope", .{});
+ return astgen.failNode(node, "'try' outside function scope", .{});
};
if (parent_gz.in_defer) return astgen.failNode(node, "'try' not allowed inside defer expression", .{});
test/cases.zig
@@ -903,7 +903,7 @@ pub fn addCases(ctx: *TestContext) !void {
\\ _ = S;
\\}
,
- &.{":4:13: error: invalid 'try' outside function scope"},
+ &.{":4:13: error: 'try' outside function scope"},
);
}
{