2019-05-02 18:34:15 -04: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 03:42:32 +03:00
|
|
|
LL | &mut 4
|
2018-10-14 15:12:02 +01:00
|
|
|
| ^^^^^-
|
|
|
|
| | |
|
|
|
|
| | temporary value created here
|
|
|
|
| returns a reference to data owned by the current function
|
2017-12-10 17:00:20 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-12-10 17:00:20 +00:00
|
|
|
|
2019-05-02 18:34:15 -04:00
|
|
|
For more information about this error, try `rustc --explain E0515`.
|