mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
10 lines
158 B
Zig
10 lines
158 B
Zig
fn foo(s: []u8) void {
|
|
_ = s;
|
|
}
|
|
|
|
test "string literal to mutable slice" {
|
|
foo("hello");
|
|
}
|
|
|
|
// test_error=expected type '[]u8', found '*const [5:0]u8'
|