mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
8 lines
145 B
Zig
8 lines
145 B
Zig
comptime {
|
|
const array: [5]u8 = "hello".*;
|
|
const garbage = array[5];
|
|
_ = garbage;
|
|
}
|
|
|
|
// test_error=index 5 outside array of length 5
|