From be2c84d0f69c3cb9dc747a61a782e9fcd8ca7b4d Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Wed, 7 Dec 2022 22:33:11 +0100 Subject: union enum trips the compiler --- day_07.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day_07.zig b/day_07.zig index 01c71a2..e11fe2f 100644 --- a/day_07.zig +++ b/day_07.zig @@ -1,7 +1,7 @@ const std = @import("std"); const Result = @import("util/aoc.zig").Result; -const NodeType = union(enum) { File, Dir }; +const NodeType = enum { File, Dir }; const Node = struct { Name: []const u8, Childs: struct { -- cgit v1.2.3