rust/tests/ui/borrowck/issue-46471.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
287 B
Plaintext
Raw Normal View History

2019-05-02 22:34:15 +00:00
error[E0515]: cannot return reference to local variable `x`
--> $DIR/issue-46471.rs:3:5
2017-12-08 15:20:45 +00:00
|
2018-02-23 00:42:32 +00:00
LL | &x
| ^^ returns a reference to data owned by the current function
2017-12-08 15:20:45 +00:00
error: aborting due to 1 previous error
2017-12-08 15:20:45 +00:00
2019-05-02 22:34:15 +00:00
For more information about this error, try `rustc --explain E0515`.