error: type capture contains reference to comptime var
fn capitalize(tag: []u8) []u8 { tag[0] &= 95; return tag; } fn MyType(T: type, comptime tag: []u8, comptime count: usize) type { const capitalized = capitalize(tag); return struct { fn name() []const u8 { return capitalized; } array: [count]T, }; } pub fn main() void { comptime var hello: [5]u8 = undefined; @memcpy(&hello, "hello"); var v: MyType(i32, &hello, 10) = undefined; v.name(); }