mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
11 lines
251 B
Zig
11 lines
251 B
Zig
const std = @import("std");
|
|
const expectEqual = std.testing.expectEqual;
|
|
|
|
const Tuple = struct { u8, u8 };
|
|
test "coercion from homogeneous tuple to array" {
|
|
const tuple: Tuple = .{ 5, 6 };
|
|
const array: [2]u8 = tuple;
|
|
_ = array;
|
|
}
|
|
|
|
// test
|