Commit 3aaf394249
Changed files (2)
test
behavior
cases
compile_errors
test/behavior/tuple.zig
@@ -405,7 +405,7 @@ test "tuple of struct concatenation and coercion to array" {
const SomeStruct = struct { array: [4]StructWithDefault };
const value1 = SomeStruct{ .array = .{StructWithDefault{}} ++ [_]StructWithDefault{.{}} ** 3 };
- const value2 = SomeStruct{ .array = .{.{}} ++ [_]StructWithDefault{.{}} ** 3 };
+ const value2 = SomeStruct{ .array = .{ .{}, .{}, .{}, .{} } };
try expectEqual(value1, value2);
}
test/cases/compile_errors/invalid_tuple_to_struct_coercion.zig
@@ -7,7 +7,6 @@ export fn entry() void {
}
// error
-// target=native
//
-// :6:31: error: no field named '0' in struct 'tmp.S'
+// :6:31: error: expected type 'tmp.S', found 'struct { comptime void = {} }'
// :1:11: note: struct declared here