Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
rvalueref.d
blob: 1c96c36f1f5b3334f0b9a363d9f506e88e7eea3e [
file
] [
log
] [
blame
]
/* 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
)));