Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: tuple field has a name #19801

Open
sytranvn opened this issue Apr 29, 2024 · 0 comments
Open

error: tuple field has a name #19801

sytranvn opened this issue Apr 29, 2024 · 0 comments
Labels
error message This issue points out an error message that is unhelpful and should be improved.

Comments

@sytranvn
Copy link

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.

@sytranvn sytranvn added the error message This issue points out an error message that is unhelpful and should be improved. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error message This issue points out an error message that is unhelpful and should be improved.
Projects
None yet
Development

No branches or pull requests

1 participant