2 REQUIRED_ARGS: -preview=dip1000
5 fail_compilation/test17422.d(23): Error: scope variable `p` may not be returned
10 Object
get() return @trusted
12 return cast(Object
) &store
[0];
16 ubyte[__traits(classInstanceSize
, Object
)] store
;
22 auto p
= rc
.get
; // p must be inferred as scope variable, works for int*