| 1 |
/* https://issues.dlang.org/show_bug.cgi?id=23181 |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
$p:druntime/import/core/lifetime.d$($n$): Error: struct `fail23181.fail23181.NoPostblit` is not copyable because it has a disabled postblit |
| 5 |
$p:druntime/import/core/internal/array/construction.d$($n$): Error: template instance `core.lifetime.copyEmplace!(NoPostblit, NoPostblit)` error instantiating |
| 6 |
fail_compilation/fail23181.d(15): instantiated from here: `_d_arraysetctor!(NoPostblit[], NoPostblit)` |
| 7 |
--- |
| 8 |
*/ |
| 9 |
void fail23181() |
| 10 |
{ |
| 11 |
struct NoPostblit |
| 12 |
{ |
| 13 |
@disable this(this); |
| 14 |
} |
| 15 |
NoPostblit[4] noblit23181 = NoPostblit(); |
| 16 |
} |