| ... | ... | @@ -223,7 +223,7 @@ pub fn Writable(T: type, this_kind: enum { _var, _const, _bare }) type { |
| 223 | 223 | |
| 224 | 224 | pub fn writeStruct(self: Self, value: anytype) Error!void { |
| 225 | 225 | // Only extern and packed structs have defined in-memory layout. |
| 226 | | comptime std.debug.assert(@typeInfo(@TypeOf(value)).Struct.layout != .Auto); |
| 226 | comptime std.debug.assert(@typeInfo(@TypeOf(value)).@"struct".layout != .auto); |
| 227 | 227 | return writeAll(self, std.mem.asBytes(&value)); |
| 228 | 228 | } |
| 229 | 229 | |