zig/test/cases/compile_error.zig

8 lines
110 B
Zig

export fn foo() void {
@compileError("this is an error");
}
// error
//
// :2:5: error: this is an error