You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does not compile :
import std;
import std.container.array;
struct NoCopy
{
@disable this(this);
}
void main()
{
Array!NoCopy arr;
}
With the error :
/dlang/dmd/linux/bin64/../../src/phobos/std/container/array.d(816): Error: struct `onlineapp.NoCopy` is not copyable because it has a disabled postblit
/dlang/dmd/linux/bin64/../../src/phobos/std/container/array.d(825): Error: struct `onlineapp.NoCopy` is not copyable because it has a disabled postblit
/dlang/dmd/linux/bin64/../../src/phobos/std/container/array.d(262): Error: struct `onlineapp.NoCopy` is not copyable because it has a disabled postblit
/dlang/dmd/linux/bin64/../../src/phobos/std/container/array.d(269): Error: struct `onlineapp.NoCopy` is not copyable because it has a disabled postblit
/dlang/dmd/linux/bin64/../../src/phobos/std/container/array.d(628): Error: template instance `std.container.array.RangeT!(Array!(NoCopy))` error instantiating
onlineapp.d(11): instantiated from here: `Array!(NoCopy)
The text was updated successfully, but these errors were encountered:
gekamig511 reported this on 2022-10-31T13:27:34Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=23448
Description
The text was updated successfully, but these errors were encountered: