blob: 9df207120b364c78b7e820e3b91aa6768dca62d7 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail336.d(16): Error: struct `S` has constructors, cannot use `{ initializers }`, use `S( initializers )` instead
---
*/
// https://issues.dlang.org/show_bug.cgi?id=3476
// C-style initializer for structs must be disallowed for structs with a constructor
struct S
{
int a;
this(int) {}
}
S s = { 1 };