]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-46471.stderr
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / borrowck / issue-46471.stderr
1 error[E0515]: cannot return reference to local variable `x`
2   --> $DIR/issue-46471.rs:3:5
3    |
4 LL |     &x
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`.