zig
zig copied to clipboard
error: tuple field has a name
Zig Version
0.12.0
Steps to Reproduce and Observed Output
const Point = struct {
x: f32,
y: f32,
z = f32,
};
$ zig build
install
└─ install test
└─ zig build-exe test Debug native 1 errors
src/main.zig:2:5: error: tuple field has a name
x: f32,
^
error: the following command failed with 1 compilation errors:
...
Expected Output
Error should point to z = f32 as it is invalid syntax.