I thought I understood limitations of ref returns as well as escaping scopes.
But now I found a case and I don\'t get why is it illegal. It seems that ref return cann