rust/tests/ui/nll/issue-30438-c.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

error[E0515]: cannot return reference to local variable `x`
--> $DIR/issue-30438-c.rs:9:5
2018-07-15 21:11:54 +00:00
|
LL | &x
| ^^ returns a reference to data owned by the current function
2018-07-15 21:11:54 +00:00
error: aborting due to previous error
2018-07-15 21:11:54 +00:00
For more information about this error, try `rustc --explain E0515`.