zig/test/cases/redundant_comptime.1.zig

10 lines
160 B
Zig

pub fn main() void {
comptime {
var a: u32 = comptime 0;
}
}
// error
//
// :3:22: error: redundant comptime keyword in already comptime scope