/* 注意: このプログラムはコンパイルに失敗する可能性がある。 */ module pind.samples.ja.for_matted_output.formatted_output_2; import std.stdio; void main() { writefln!"%s %s"(1); // ← コンパイルエラー(余分な%s) writefln!"%s"(1, 2); // ← コンパイルエラー(余分な2) writefln!"%s %d"(1, 2.5); // ← コンパイルエラー(%dと2.5が一致しない) }