master
 1const std = @import("std");
 2
 3const Foo = enum {
 4    a,
 5    b,
 6    c,
 7};
 8
 9pub fn main() void {
10    var a: u2 = 3;
11    _ = &a;
12    const b: Foo = @enumFromInt(a);
13    std.debug.print("value: {s}\n", .{@tagName(b)});
14}
15
16// exe=fail