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

--- Comment #2 from Eugene Wissner <[email protected]> ---
The constructor parameter is marked with "return scope ref" and it means that
Inserter isn't allowed to outlive it.

You can also write

this(return scope ref int i) @trusted
{
    this.i = &i;
}

and it worked prior to 2.086 as well.

--

Reply via email to