Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
invalid_array_assignment_with_valid_elems.zig
pretty
plain
permalink
blame
history
•
9 lines
•
160 B
1
export fn a() void {
2
const x = [_]u16{ 1, 2, 3 };
3
const y: [3]i32 = x;
4
_ = y;
5
}
6
7
// error
8
//
9
// 3:23: error: expected type '[3]i32', found '[3]u16'