rust/tests/ui/issues/issue-46472.stderr

13 lines
358 B
Plaintext
Raw Normal View History

2019-05-02 22:34:15 +00:00
error[E0515]: cannot return reference to temporary value
--> $DIR/issue-46472.rs:2:5
2017-12-10 17:00:20 +00:00
|
2018-02-23 00:42:32 +00:00
LL | &mut 4
| ^^^^^-
| | |
| | temporary value created here
| returns a reference to data owned by the current function
2017-12-10 17:00:20 +00:00
2019-05-02 22:34:15 +00:00
error: aborting due to previous error
2017-12-10 17:00:20 +00:00
2019-05-02 22:34:15 +00:00
For more information about this error, try `rustc --explain E0515`.