]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.stderr
Auto merge of #101768 - sunfishcode:sunfishcode/wasi-stdio-lock-asfd, r=joshtriplett
[rust.git] / src / test / ui / borrowck / borrowck-local-borrow-outlives-fn.stderr
1 error[E0515]: cannot return reference to function parameter `x`
2   --> $DIR/borrowck-local-borrow-outlives-fn.rs:2: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`.