1 2 3 4 5 6 7 8 9 10 11
module test17885; struct T { ulong a, b; } T f() { return T(); } void main() { int[T] set = [f(): 0]; set.remove(f()); assert(f() !in set); }