1 /* 2 TEST_OUTPUT: 3 --- 4 fail_compilation/diag7050c.d(13): Error: @safe destructor 'diag7050c.B.~this' cannot call @system destructor 'diag7050c.A.~this' 5 --- 6 */ 7 8 struct A 9 { 10 ~this(){} 11 } 12 13 @safe struct B 14 { 15 A a; 16 } 17 18 @safe void f() 19 { 20 auto x = B.init; 21 } 22