2023-04-17 11:38:30 -05:00
|
|
|
error[E0515]: cannot return reference to temporary value
|
|
|
|
--> $DIR/borrowck-error.rs:7:5
|
|
|
|
|
|
|
|
|
LL | &HashMap::new()
|
|
|
|
| ^--------------
|
|
|
|
| ||
|
|
|
|
| |temporary value created here
|
|
|
|
| returns a reference to data owned by the current function
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-04-17 11:38:30 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0515`.
|