Testing for compileError with `std.testing`

Hi ! Is there a function in std.testing to check for errors raised with @compileError?

In order for the test to run, it has to compile, so you can’t do it with a normal test. Checking for compilation errors has to be done in the build system. There is a field in CompileStep called expect_errors: ?ExpectedCompileErrors, which should do what you want. I’ve never used it though.