mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
247 B
D
16 lines
247 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail250.d(10): Error: constructor `fail250.A.this` default constructor for structs only allowed with `@disable`, no body, and no parameters
|
|
---
|
|
*/
|
|
|
|
struct A
|
|
{
|
|
this() {}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
auto a = A();
|
|
}
|