1 /* REQUIRED_ARGS: -preview=dip1000
4 fail_compilation/test14238.d(20): Error: scope parameter `fn` may not be returned
5 fail_compilation/test14238.d(28): Error: escaping reference to stack allocated value returned by `&baz`
8 // https://issues.dlang.org/show_bug.cgi?id=14238
12 alias Fn
= ref int delegate() return;
14 ref int foo(return scope Fn fn
)
19 ref int foo2(scope Fn fn
) {