summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-52534-1.stderr
blob: 743179f05c1afb7c0c4f9cb1ec4d66309620c143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
error[E0515]: cannot return reference to local variable `x`
  --> $DIR/issue-52534-1.rs:6:9
   |
LL |         &x
   |         ^^ returns a reference to data owned by the current function

error[E0515]: cannot return reference to local variable `x`
  --> $DIR/issue-52534-1.rs:13:5
   |
LL |     &x
   |     ^^ returns a reference to data owned by the current function

error[E0515]: cannot return value referencing local variable `x`
  --> $DIR/issue-52534-1.rs:19:5
   |
LL |     &&x
   |     ^--
   |     ||
   |     |`x` is borrowed here
   |     returns a value referencing data owned by the current function

error[E0515]: cannot return reference to temporary value
  --> $DIR/issue-52534-1.rs:19:5
   |
LL |     &&x
   |     ^--
   |     ||
   |     |temporary value created here
   |     returns a reference to data owned by the current function

error[E0515]: cannot return reference to local variable `x`
  --> $DIR/issue-52534-1.rs:26:5
   |
LL |     &x
   |     ^^ returns a reference to data owned by the current function

error[E0515]: cannot return reference to local variable `x`
  --> $DIR/issue-52534-1.rs:32:5
   |
LL |     &x
   |     ^^ returns a reference to data owned by the current function

error[E0515]: cannot return reference to local variable `x`
  --> $DIR/issue-52534-1.rs:38:5
   |
LL |     &x
   |     ^^ returns a reference to data owned by the current function

error[E0515]: cannot return reference to local variable `x`
  --> $DIR/issue-52534-1.rs:44:5
   |
LL |     &x
   |     ^^ returns a reference to data owned by the current function

error: aborting due to 8 previous errors

For more information about this error, try `rustc --explain E0515`.