]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-47470.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / issue-47470.stderr
1 error[E0515]: cannot return reference to local variable `local`
2   --> $DIR/issue-47470.rs:15:9
3    |
4 LL |         &local
5    |         ^^^^^^ returns a reference to data owned by the current function
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0515`.