mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-28 11:27:09 +03:00
3485a0e7fb
Operands to @memcpy and @memset were being called "for loop operands" in the error.
13 lines
275 B
Zig
13 lines
275 B
Zig
export fn a() void {
|
|
const S = struct { x: i32, y: i32 };
|
|
var s: S = undefined;
|
|
s[0] = 10;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :4:6: error: type 'tmp.a.S' does not support indexing
|
|
// :4:6: note: operand must be an array, slice, tuple, or vector
|