blob: 041d627f58447bfc9e45f30b9756bf3937f7a094 [file] [log] [blame]
error[E0515]: cannot return reference to temporary value
--> $DIR/regions-return-stack-allocated-vec.rs:14:5
|
LL | &[x] //~ ERROR borrowed value does not live long enough
| ^---
| ||
| |temporary value created here
| returns a reference to data owned by the current function
error: aborting due to previous error
For more information about this error, try `rustc --explain E0515`.