5 days ago
https://issues.dlang.org/show_bug.cgi?id=17264

--- Comment #1 from elpenguino+D@gmail.com ---
Elements with a disabled default constructor fail similarly.

struct NoDefault {
  int i;
  @disable this();
  this(int x) { i = x; }
}

NoDefault[] var = [NoDefault(0), NoDefault(1), NoDefault(1), NoDefault(2)];
assert(var.uniq.equal([NoDefault(0), NoDefault(1), NoDefault(2)]));

results in

std\algorithm\iteration.d(4912): Error: field _back must be initialized in
constructor

--