test_print_too_many_args.zig (340B) - Raw
1 const print = @import("std").debug.print; 2 3 const a_number: i32 = 1234; 4 const a_string = "foobar"; 5 6 test "print too many arguments" { 7 print("here is a string: '{s}' here is a number: {}\n", .{ 8 a_string, 9 a_number, 10 a_number, 11 }); 12 } 13 14 // test_error=unused argument in 'here is a string: '{s}' here is a number: {}