Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/diag10099.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag10099.d(15): Error: variable `diag10099.main.s` - default construction is disabled for type `S`
5 ---
6 */
7
8 struct S
9 {
10 @disable this();
11 }
12
13 void main()
14 {
15 S s;
16 }