1fn Func(comptime Type: type) type {
 2    return struct { value: Type };
 3}
 4
 5inline fn func(value: anytype) Func(@TypeOf(value)) {
 6    return .{ .value = value };
 7}
 8
 9test {
10    _ = func(type);
11}
12
13test {
14    const S = struct { field: u32 };
15    comptime var arr: [1]S = undefined;
16    arr[0] = .{ .field = 0 };
17}
18
19test {
20    const S = struct { u32 };
21    comptime var arr: [1]S = undefined;
22    arr[0] = .{0};
23}