4 fail_compilation/disable.d(50): Error: function disable.DisabledOpAssign.opAssign is not callable because it is annotated with @disable
5 fail_compilation/disable.d(53): Error: function disable.DisabledPostblit.opAssign is not callable because it is annotated with @disable
6 fail_compilation/disable.d(56): Error: function disable.HasDtor.opAssign is not callable because it is annotated with @disable
7 fail_compilation/disable.d(60): Error: generated function disable.Nested!(DisabledOpAssign).Nested.opAssign is not callable because it is annotated with @disable
8 fail_compilation/disable.d(63): Error: generated function disable.Nested!(DisabledPostblit).Nested.opAssign is not callable because it is annotated with @disable
9 fail_compilation/disable.d(66): Error: generated function disable.Nested!(HasDtor).Nested.opAssign is not callable because it is annotated with @disable
10 fail_compilation/disable.d(70): Error: generated function disable.NestedDtor!(DisabledOpAssign).NestedDtor.opAssign is not callable because it is annotated with @disable
11 fail_compilation/disable.d(73): Error: generated function disable.NestedDtor!(DisabledPostblit).NestedDtor.opAssign is not callable because it is annotated with @disable
12 fail_compilation/disable.d(76): Error: generated function disable.NestedDtor!(HasDtor).NestedDtor.opAssign is not callable because it is annotated with @disable
15 struct DisabledOpAssign {
17 @disable void opAssign(const DisabledOpAssign);
20 struct DisabledPostblit {
22 @disable void opAssign(const DisabledPostblit);
23 // Doesn't require opAssign
29 @disable void opAssign(const HasDtor);
30 ~this() {} // Makes opAssign mandatory
43 // Requires an identity opAssign
50 o = DisabledOpAssign();
53 p = DisabledPostblit();
59 Nested!(DisabledOpAssign) no;
60 no = Nested!(DisabledOpAssign)();
62 Nested!(DisabledPostblit) np;
63 np = Nested!(DisabledPostblit)();
66 nd = Nested!(HasDtor)();
69 NestedDtor!(DisabledOpAssign) ndo;
70 ndo = NestedDtor!(DisabledOpAssign)();
72 NestedDtor!(DisabledPostblit) ndp;
73 ndp = NestedDtor!(DisabledPostblit)();
75 NestedDtor!(HasDtor) ndd;
76 ndd = NestedDtor!(HasDtor)();