blob: 17e4b5e8dcfb281c6f08758e8ab14f3e54f43023 (
plain)
1
2
3
4
5
6
7
8
9
|
error[E0515]: cannot return reference to local variable `x`
--> $DIR/issue-46471.rs:3:5
|
LL | &x
| ^^ returns a reference to data owned by the current function
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0515`.
|