]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-local-borrow-outlives-fn.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / 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`.