1 // REQUIRED_ARGS: -preview=dip1000
5 fail_compilation/fail20108.d(15): Error: address of variable `y` assigned to `x` with longer lifetime
6 fail_compilation/fail20108.d(16): Error: scope parameter `x` may not be returned
7 fail_compilation/fail20108.d(23): Error: address of variable `y` assigned to `x` with longer lifetime
8 fail_compilation/fail20108.d(24): Error: scope variable `x` may not be returned
12 @safe auto test(scope int* x
)