Files
zig/test/cases/compile_errors/bad_void_initializer.zig
T
Matthew Lugg 7b44e8986f Sema: remove void{} from the language
Because this syntax is not heavily used, and the migration can be done
with a simple text substitution, I do not believe a `zig fmt` fixup is
necessary for this change.

Resolves: https://github.com/ziglang/zig/issues/15213
2026-04-29 23:27:58 +01:00

8 lines
116 B
Zig

comptime {
_ = void{};
}
// error
//
// :2:13: error: type 'void' does not support array initialization syntax