-- struct Outer { Inner i; } struct Inner { @disable this(this); } void main() { Outer o1; Outer o2; o1 = o2; } -- Error message: Error: struct `tests.at_disable.Outer` is not copyable because it is annotated with `@disable` Should instead say: because Outer.i is not copyable or smth. similar.
@RazvanN7 created dlang/dmd pull request #12513 "Fix Issue 21885 - Bad diagnostic: struct is not copyable because it is annotated @disable" fixing this issue: - Fix Issue 21885 - Bad diagnostic: struct is not copyable because it is annotated @disable https://github.com/dlang/dmd/pull/12513
dlang/dmd pull request #12513 "Fix Issue 21885 - Bad diagnostic: struct is not copyable because it is annotated @disable" was merged into master: - 38cce70aeb28a6f70ce75d6bbaecc02922617e5a by RazvanN7: Fix Issue 21885 - Bad diagnostic: struct is not copyable because it is annotated @disable https://github.com/dlang/dmd/pull/12513