mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
11 lines
122 B
Zig
11 lines
122 B
Zig
pub fn main() void {
|
|
const x = foo("hello");
|
|
_ = x;
|
|
}
|
|
|
|
fn foo(x: []const u8) u8 {
|
|
return x[5];
|
|
}
|
|
|
|
// exe=fail
|