mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
14 lines
340 B
Zig
14 lines
340 B
Zig
const print = @import("std").debug.print;
|
|
|
|
const a_number: i32 = 1234;
|
|
const a_string = "foobar";
|
|
|
|
test "print too many arguments" {
|
|
print("here is a string: '{s}' here is a number: {}\n", .{
|
|
a_string,
|
|
a_number,
|
|
a_number,
|
|
});
|
|
}
|
|
|
|
// test_error=unused argument in 'here is a string: '{s}' here is a number: {}
|