2 REQUIRED_ARGS: -preview=dip1000
5 fail_compilation/test22298.d(18): Error: scope variable `i` assigned to `p` with longer lifetime
6 fail_compilation/test22298.d(29): Error: scope variable `y` assigned to `x` with longer lifetime
10 void g(scope void delegate(scope int*) @safe cb
) @safe {
17 void f(scope int* i
) @safe {
22 // address of x has escaped g
27 mixin("scope int* x;");