1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag13320.d(13): Error: 'f += 1' is not a scalar, it is a Foo
5 ---
6 */
7 
8 struct Foo {}
9 
main()10 void main()
11 {
12     Foo f;
13     ++f;
14 }
15