dmd/compiler/test/compilable/rvalueref.d
2022-07-09 18:53:07 +02:00

13 lines
258 B
D

/* REQUIRED_ARGS: -preview=rvaluerefparam
*/
struct AS
{
string get() @safe @nogc pure nothrow { return _s; }
alias get this;
@disable this(this);
string _s;
}
void popFront(ref string) { }
static assert(!is(typeof((R r) => r.popFront)));