1 error[E0515]: cannot return reference to local variable `local`
2 --> $DIR/issue-47470.rs:15:9
5 | ^^^^^^ returns a reference to data owned by the current function
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0515`.