1 /* 2 test_output: 3 --- 4 fail_compilation/fail324.d(16): Error: template instance doStuff!((i){ return i; }) cannot use local '__lambda1' as parameter to non-global template doStuff(alias fun)() 5 --- 6 */ 7 8 struct Foo 9 { doStuffFoo10 void doStuff(alias fun)() {} 11 } 12 main()13void main() 14 { 15 Foo foo; 16 foo.doStuff!( (i) { return i; })(); 17 } 18