We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.12.0-dev.162+ada001047
// format.zig const std = @import("std"); pub fn main() !void { const segf = struct { pub fn format(self: @This(), _: anytype, _: anytype, writer: anytype) !void { try writer.print("{}", .{self}); } }; std.debug.print("{}", .{segf{}}); }
run zig run format.zig result: segmentation fault (core dumped) zig run format.zig
zig run format.zig
segmentation fault (core dumped) zig run format.zig
some type of dependency loop compile error
The text was updated successfully, but these errors were encountered:
Infinite recursion is not an error in Zig.
Sorry, something went wrong.
ah right, i used zig run so i didnt realize it was a runtime crash, apologies. should this be closed then?
zig run
Yes: #1006
No branches or pull requests
Zig Version
0.12.0-dev.162+ada001047
Steps to Reproduce and Observed Behavior
run
zig run format.zig
result:
segmentation fault (core dumped) zig run format.zig
Expected Behavior
some type of dependency loop compile error
The text was updated successfully, but these errors were encountered: