zig/test/cases/compile_errors/invalid_decltest.zig
2023-01-30 15:20:16 +02:00

13 lines
219 B
Zig

export fn foo() void {
const a = 1;
struct {
test a {}
};
}
// error
// backend=stage2
// target=native
//
// :4:14: error: cannot test a local constant
// :2:11: note: local constant declared here