xxxxxxxxxx
import std.stdio;
struct S
{
int[4] a;
alias a this;
enum length = 1;
~this() { writeln("elaborate!"); }
}
void main()
{
import std.traits : hasElaborateDestructor1 = hasElaborateDestructor;
import core.internal.traits : hasElaborateDestructor2 = hasElaborateDestructor;
writeln(hasElaborateDestructor1!S);
writeln(hasElaborateDestructor2!S);
}