mirror of
https://github.com/ziglang/zig.git
synced 2025-12-13 17:53:07 +00:00
11 lines
174 B
Zig
11 lines
174 B
Zig
export fn entry(ptr: *i32) void {
|
|
const slice = ptr[0..2];
|
|
_ = slice;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :2:22: error: slice of single-item pointer
|