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