xxxxxxxxxx
import std.stdio, std.traits, std.conv;
struct A(alias T)
{
static void foo()
{
pragma(msg, __traits(getAttributes, T));
static if (__traits(compiles, __traits(getAttributes, T))) // Failing for some reason
static foreach(a; __traits(getAttributes, T)) pragma(msg, to!string(a), "-", typeof(a).stringof);
}
}
void main()
{
3) int a; (
(A!a).foo();
}