2018-10-14 09:12:02 -05:00
|
|
|
error[E0515]: cannot return value referencing temporary value
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/borrowed-universal-error.rs:7:5
|
2018-03-01 08:56:43 -06:00
|
|
|
|
|
|
|
|
LL | gimme(&(v,))
|
2018-10-14 09:12:02 -05:00
|
|
|
| ^^^^^^^----^
|
|
|
|
| | |
|
|
|
|
| | temporary value created here
|
|
|
|
| returns a value referencing data owned by the current function
|
2018-03-01 08:56:43 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-10-14 09:12:02 -05:00
|
|
|
For more information about this error, try `rustc --explain E0515`.
|