[Chapel Merge] Add a future for a case where I expect a lifetime error

Branch: refs/heads/main
Revision: 8375c3073534ed767deda75eacec1d4c293c0335
Author: mppf
Link: Add a future for a case where I expect a lifetime error by mppf · Pull Request #27071 · chapel-lang/chapel · GitHub
Log Message:
Add a future for a case where I expect a lifetime error (#27071)

Adds a .future test for issue #27072. I ran into this case when writing
about the lifetime checker.

Test change only, not reviewed.

Compare: Comparing 6d468c32d76c51bec72df02ededa55057bad243b...e3b4362bda1964cc8a716e457ef1b43dca4b22d0 · chapel-lang/chapel · GitHub

Diff:
A test/classes/delete-free/lifetimes/return-ref-to-owned-local.bad
A test/classes/delete-free/lifetimes/return-ref-to-owned-local.chpl
A test/classes/delete-free/lifetimes/return-ref-to-owned-local.future
A test/classes/delete-free/lifetimes/return-ref-to-owned-local.good
A test/classes/delete-free/lifetimes/return-ref-to-owned-local.noexec
https://github.com/chapel-lang/chapel/pull/27071.diff