1 error[E0515]: cannot return reference to local variable `x`
2 --> $DIR/issue-52534-1.rs:19:9
5 | ^^ returns a reference to data owned by the current function
7 error[E0515]: cannot return reference to local variable `x`
8 --> $DIR/issue-52534-1.rs:25:5
11 | ^^ returns a reference to data owned by the current function
13 error[E0515]: cannot return value referencing local variable `x`
14 --> $DIR/issue-52534-1.rs:30:5
19 | |`x` is borrowed here
20 | returns a value referencing data owned by the current function
22 error[E0515]: cannot return reference to temporary value
23 --> $DIR/issue-52534-1.rs:30:5
28 | |temporary value created here
29 | returns a reference to data owned by the current function
31 error[E0515]: cannot return reference to local variable `x`
32 --> $DIR/issue-52534-1.rs:35:5
35 | ^^ returns a reference to data owned by the current function
37 error[E0515]: cannot return reference to local variable `x`
38 --> $DIR/issue-52534-1.rs:40:5
41 | ^^ returns a reference to data owned by the current function
43 error[E0515]: cannot return reference to local variable `x`
44 --> $DIR/issue-52534-1.rs:45:5
47 | ^^ returns a reference to data owned by the current function
49 error[E0515]: cannot return reference to local variable `x`
50 --> $DIR/issue-52534-1.rs:50:5
53 | ^^ returns a reference to data owned by the current function
55 error: aborting due to 8 previous errors
57 For more information about this error, try `rustc --explain E0515`.