dmd/compiler/test/compilable/test20406.d
2022-07-09 18:53:07 +02:00

15 lines
180 B
D

// https://issues.dlang.org/show_bug.cgi?id=20406
struct S
{
@disable this();
this(int) {}
this(ref S other) {}
}
void foo(S s) {}
void main()
{
S s = S(3);
foo(s);
}