import std; struct S { int b; this (int b) { this.b = b; } @disable this(this); this (scope ref inout S) inout { this.b = b; } } void main() { Nullable!S _s; _s = S(3); } ----------------- fails with /home/omer/dlang/ldc-1.28.0/bin/../import/std/typecons.d(3031): Error: Generating an `inout` copy constructor for `struct std.typecons.Nullable!(S).Nullable` failed, therefore instances of it are uncopyable newtest.d(22): Error: template instance `std.typecons.Nullable!(S).Nullable.opAssign!()` error instantiating
@omerfirmak created dlang/phobos pull request #8316 "Fix Issue 22511 - Add explicit copy ctor for Nullable" fixing this issue: - Fix Issue 22511 - Add explicit copy ctor for Nullable https://github.com/dlang/phobos/pull/8316
@omerfirmak created dlang/phobos pull request #8318 "Merge PR #8315 & #8316 in to `stable`" fixing this issue: - Fix Issue 22511 - Add explicit copy ctor for Nullable https://github.com/dlang/phobos/pull/8318
dlang/phobos pull request #8316 "Fix Issue 22511 - Add explicit copy ctor for Nullable" was merged into master: - b141ae469baf5b496ace0e056893b48c371efc72 by Ömer Faruk IRMAK: Fix Issue 22511 - Add explicit copy ctor for Nullable https://github.com/dlang/phobos/pull/8316
dlang/phobos pull request #8318 "Merge PR #8315 & #8316 in to `stable`" was merged into stable: - e84de9faaefc55d09e9f126615e97cf5a219d2c2 by Ömer Faruk IRMAK: Fix Issue 22511 - Add explicit copy ctor for Nullable https://github.com/dlang/phobos/pull/8318
*** Issue 21397 has been marked as a duplicate of this issue. ***