auto foo(T)() { return T(); //不能访问 } void main() { struct T { int a=1; void argsFunc(int a) {} // (1) }//不能访问该处的T,放在外面就行了 pragma(msg,foo!T()); }