mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
15 lines
340 B
Zig
15 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: {}
|