mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +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
|