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