| 1 |
// https://issues.dlang.org/show_bug.cgi?id=19870 |
| 2 |
struct T |
| 3 |
{ |
| 4 |
int i; |
| 5 |
this(ref return scope inout typeof(this) src) |
| 6 |
inout @safe pure nothrow @nogc |
| 7 |
{ |
| 8 |
i = src.i; |
| 9 |
} |
| 10 |
} |
| 11 |
|
| 12 |
struct S |
| 13 |
{ |
| 14 |
T t; |
| 15 |
} |
| 16 |
|
| 17 |
void main() |
| 18 |
{ |
| 19 |
T a; |
| 20 |
S b = S(a); |
| 21 |
} |