Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=21204
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test21204.d(22): Error: generating an `inout` copy constructor for `struct test21204.B` failed, therefore instances of it are uncopyable
6 ---
7 */
8
9 struct A
10 {
11 this(ref A other) {}
12 }
13
14 struct B
15 {
16 A a;
17 }
18
19 void example()
20 {
21 B b1;
22 B b2 = b1;
23 }