]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/borrowed-universal-error-2.stderr
Rollup merge of #60685 - dtolnay:spdx, r=nikomatsakis
[rust.git] / src / test / ui / nll / borrowed-universal-error-2.stderr
1 error[E0515]: cannot return reference to local variable `v`
2   --> $DIR/borrowed-universal-error-2.rs:6:5
3    |
4 LL |     &v
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`.