https://issues.dlang.org/show_bug.cgi?id=21286
--- Comment #3 from Paul Backus <[email protected]> --- This also affects non-nested functions. For example: --- ref int* getRef(return ref scope int* p) @safe { return p; } void main() @safe { int n; scope int* p; getRef(p) = &n; } --- I'm not sure if it's feasible to accept code like this without a full-blown lifetime system like Rust's, but it would certainly be convenient if we could. --
