Strange exception, with EXTREMELY SIMPLE toString() in a struct

Enjoys Math via Digitalmars-d-learn digitalmars-d-learn at
Mon Dec 7 00:17:27 PST 2015

Exception Message:
First-chance exception: std.format.FormatException Unterminated 
format specifier: "%" at 

module set;
import std.conv;

struct Set(T) {
	string toString() const {
		auto str = "{";
		return str;

unittest {
	import std.stdio;
	auto A = Set!int();

More information about the Digitalmars-d-learn mailing list