https://issues.dlang.org/show_bug.cgi?id=5730
Iain Buclaw <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |[email protected] Resolution|FIXED |--- --- Comment #7 from Iain Buclaw <[email protected]> --- Related test still fails though. struct S10666 { int val; ~this() {} } void foo10666(S10666 s1) { // Error: s1 has scoped destruction, cannot build closure. auto f1 = (){ return () => s1.val; }(); enum r1 = __traits(compiles, { auto f1 = (){ return () => s1.val; }(); }); static assert(!r1); // Error: static assert: `!r1` is false } --
