]>
Commit | Line | Data |
---|---|---|
0bf4aa26 | 1 | error[E0515]: cannot return reference to local variable `x` |
48663c56 | 2 | --> $DIR/issue-52534-1.rs:6:9 |
0bf4aa26 XL |
3 | | |
4 | LL | &x | |
5 | | ^^ returns a reference to data owned by the current function | |
6 | ||
7 | error[E0515]: cannot return reference to local variable `x` | |
48663c56 | 8 | --> $DIR/issue-52534-1.rs:13:5 |
0bf4aa26 XL |
9 | | |
10 | LL | &x | |
11 | | ^^ returns a reference to data owned by the current function | |
12 | ||
13 | error[E0515]: cannot return value referencing local variable `x` | |
48663c56 | 14 | --> $DIR/issue-52534-1.rs:19:5 |
0bf4aa26 XL |
15 | | |
16 | LL | &&x | |
17 | | ^-- | |
18 | | || | |
19 | | |`x` is borrowed here | |
20 | | returns a value referencing data owned by the current function | |
21 | ||
22 | error[E0515]: cannot return reference to temporary value | |
48663c56 | 23 | --> $DIR/issue-52534-1.rs:19:5 |
0bf4aa26 XL |
24 | | |
25 | LL | &&x | |
26 | | ^-- | |
27 | | || | |
28 | | |temporary value created here | |
29 | | returns a reference to data owned by the current function | |
30 | ||
31 | error[E0515]: cannot return reference to local variable `x` | |
48663c56 | 32 | --> $DIR/issue-52534-1.rs:26:5 |
0bf4aa26 XL |
33 | | |
34 | LL | &x | |
35 | | ^^ returns a reference to data owned by the current function | |
36 | ||
37 | error[E0515]: cannot return reference to local variable `x` | |
48663c56 | 38 | --> $DIR/issue-52534-1.rs:32:5 |
0bf4aa26 XL |
39 | | |
40 | LL | &x | |
41 | | ^^ returns a reference to data owned by the current function | |
42 | ||
43 | error[E0515]: cannot return reference to local variable `x` | |
48663c56 | 44 | --> $DIR/issue-52534-1.rs:38:5 |
0bf4aa26 XL |
45 | | |
46 | LL | &x | |
47 | | ^^ returns a reference to data owned by the current function | |
48 | ||
49 | error[E0515]: cannot return reference to local variable `x` | |
48663c56 | 50 | --> $DIR/issue-52534-1.rs:44:5 |
0bf4aa26 XL |
51 | | |
52 | LL | &x | |
53 | | ^^ returns a reference to data owned by the current function | |
54 | ||
55 | error: aborting due to 8 previous errors | |
56 | ||
57 | For more information about this error, try `rustc --explain E0515`. |