mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
19 lines
223 B
D
19 lines
223 B
D
// REQUIRED_ARGS: -preview=dip1000
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=18000
|
|
|
|
struct File
|
|
{
|
|
@safe @nogc:
|
|
~this() scope
|
|
{
|
|
}
|
|
|
|
void* f;
|
|
}
|
|
|
|
void test() @safe @nogc
|
|
{
|
|
scope File x;
|
|
x = File();
|
|
}
|