| 1 |
// https://issues.dlang.org/show_bug.cgi?id=20779 |
| 2 |
|
| 3 |
/* |
| 4 |
TEST_OUTPUT: |
| 5 |
--- |
| 6 |
fail_compilation/fail20779.d(12): Error: struct `fail20779.X` cannot have field `x` with same struct type |
| 7 |
--- |
| 8 |
*/ |
| 9 |
|
| 10 |
module fail20779; |
| 11 |
|
| 12 |
struct X |
| 13 |
{ |
| 14 |
X x; |
| 15 |
|
| 16 |
enum e = __traits(compiles, X.init); |
| 17 |
} |