diff --git a/test/behavior/tuple.zig b/test/behavior/tuple.zig index 80bf5ccd1e..0a0ed1d620 100644 --- a/test/behavior/tuple.zig +++ b/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); } diff --git a/test/cases/compile_errors/invalid_tuple_to_struct_coercion.zig b/test/cases/compile_errors/invalid_tuple_to_struct_coercion.zig index 4f25a26ef1..1c691f76ea 100644 --- a/test/cases/compile_errors/invalid_tuple_to_struct_coercion.zig +++ b/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