Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=21885
2
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail21885.d(24): Error: struct `fail21885.Outer` is not copyable because field `i` is not copyable
7 ---
8 */
9
10 struct Outer
11 {
12 Inner i;
13 }
14
15 struct Inner
16 {
17 @disable this(this);
18 }
19
20 void main()
21 {
22 Outer o1;
23 Outer o2;
24 o1 = o2;
25 }