const expect = @import("std").testing.expect; test "fully anonymous struct" { dump(.{ .int = @as(u32, 1234), .float = @as(f64, 12.34), .b = true, .s = "hi", }); } fn dump(args: anytype) void { expect(args.int == 1234); expect(args.float == 12.34); expect(args.b); expect(args.s[0] == 'h'); expect(args.s[1] == 'i'); // Type is well infered, i.e. the following fail at comp time: // expect(args.a); }