https://issues.dlang.org/show_bug.cgi?id=20876

--- Comment #15 from Walter Bright <[email protected]> ---
An illustration of the generated copy constructor error:

struct S {
    this(ref S) { }
}

struct T {
    S s;
    this(inout ref T t)
    {
        this.s = t.s; // copy constructor `test.S.this(ref S __param_0)` is not
callable using argument types `(inout(S))`
    }
}

void test()
{
    T t;
    T u = t;
}

--

Reply via email to