blob: 46a00320aaa09119587c8dbb93f01650f960c7e5 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/diag13320.d(13): Error: 'f += 1' is not a scalar, it is a Foo
---
*/
struct Foo {}
void main()
{
Foo f;
++f;
}