1
1
error[E0716]: temporary value dropped while borrowed
2
- --> $DIR/cleanup-rvalue-scopes-cf.rs:26 :19
2
+ --> $DIR/cleanup-rvalue-scopes-cf.rs:30 :19
3
3
|
4
- LL | let x1 = arg(&AddFlags (1));
5
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
4
+ LL | let x1 = arg(&add_flags (1));
5
+ | ^^^^^^^^^^^^ - temporary value is freed at the end of this statement
6
6
| |
7
7
| creates a temporary value which is freed while still in use
8
8
...
@@ -11,15 +11,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
11
11
|
12
12
help: consider using a `let` binding to create a longer lived value
13
13
|
14
- LL ~ let binding = AddFlags (1);
14
+ LL ~ let binding = add_flags (1);
15
15
LL ~ let x1 = arg(&binding);
16
16
|
17
17
18
18
error[E0716]: temporary value dropped while borrowed
19
- --> $DIR/cleanup-rvalue-scopes-cf.rs:27 :14
19
+ --> $DIR/cleanup-rvalue-scopes-cf.rs:31 :14
20
20
|
21
- LL | let x2 = AddFlags (1).get();
22
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
21
+ LL | let x2 = add_flags (1).get();
22
+ | ^^^^^^^^^^^^ - temporary value is freed at the end of this statement
23
23
| |
24
24
| creates a temporary value which is freed while still in use
25
25
...
@@ -28,15 +28,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
28
28
|
29
29
help: consider using a `let` binding to create a longer lived value
30
30
|
31
- LL ~ let binding = AddFlags (1);
31
+ LL ~ let binding = add_flags (1);
32
32
LL ~ let x2 = binding.get();
33
33
|
34
34
35
35
error[E0716]: temporary value dropped while borrowed
36
- --> $DIR/cleanup-rvalue-scopes-cf.rs:28 :21
36
+ --> $DIR/cleanup-rvalue-scopes-cf.rs:32 :21
37
37
|
38
- LL | let x3 = &*arg(&AddFlags (1));
39
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
38
+ LL | let x3 = &*arg(&add_flags (1));
39
+ | ^^^^^^^^^^^^ - temporary value is freed at the end of this statement
40
40
| |
41
41
| creates a temporary value which is freed while still in use
42
42
...
@@ -45,15 +45,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
45
45
|
46
46
help: consider using a `let` binding to create a longer lived value
47
47
|
48
- LL ~ let binding = AddFlags (1);
48
+ LL ~ let binding = add_flags (1);
49
49
LL ~ let x3 = &*arg(&binding);
50
50
|
51
51
52
52
error[E0716]: temporary value dropped while borrowed
53
- --> $DIR/cleanup-rvalue-scopes-cf.rs:29 :24
53
+ --> $DIR/cleanup-rvalue-scopes-cf.rs:33 :24
54
54
|
55
- LL | let ref x4 = *arg(&AddFlags (1));
56
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
55
+ LL | let ref x4 = *arg(&add_flags (1));
56
+ | ^^^^^^^^^^^^ - temporary value is freed at the end of this statement
57
57
| |
58
58
| creates a temporary value which is freed while still in use
59
59
...
@@ -62,15 +62,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
62
62
|
63
63
help: consider using a `let` binding to create a longer lived value
64
64
|
65
- LL ~ let binding = AddFlags (1);
65
+ LL ~ let binding = add_flags (1);
66
66
LL ~ let ref x4 = *arg(&binding);
67
67
|
68
68
69
69
error[E0716]: temporary value dropped while borrowed
70
- --> $DIR/cleanup-rvalue-scopes-cf.rs:30 :24
70
+ --> $DIR/cleanup-rvalue-scopes-cf.rs:34 :24
71
71
|
72
- LL | let &ref x5 = arg(&AddFlags (1));
73
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
72
+ LL | let &ref x5 = arg(&add_flags (1));
73
+ | ^^^^^^^^^^^^ - temporary value is freed at the end of this statement
74
74
| |
75
75
| creates a temporary value which is freed while still in use
76
76
...
@@ -79,15 +79,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
79
79
|
80
80
help: consider using a `let` binding to create a longer lived value
81
81
|
82
- LL ~ let binding = AddFlags (1);
82
+ LL ~ let binding = add_flags (1);
83
83
LL ~ let &ref x5 = arg(&binding);
84
84
|
85
85
86
86
error[E0716]: temporary value dropped while borrowed
87
- --> $DIR/cleanup-rvalue-scopes-cf.rs:31 :14
87
+ --> $DIR/cleanup-rvalue-scopes-cf.rs:35 :14
88
88
|
89
- LL | let x6 = AddFlags (1).get();
90
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
89
+ LL | let x6 = add_flags (1).get();
90
+ | ^^^^^^^^^^^^ - temporary value is freed at the end of this statement
91
91
| |
92
92
| creates a temporary value which is freed while still in use
93
93
...
@@ -96,15 +96,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
96
96
|
97
97
help: consider using a `let` binding to create a longer lived value
98
98
|
99
- LL ~ let binding = AddFlags (1);
99
+ LL ~ let binding = add_flags (1);
100
100
LL ~ let x6 = binding.get();
101
101
|
102
102
103
103
error[E0716]: temporary value dropped while borrowed
104
- --> $DIR/cleanup-rvalue-scopes-cf.rs:32 :44
104
+ --> $DIR/cleanup-rvalue-scopes-cf.rs:36 :44
105
105
|
106
- LL | let StackBox { f: x7 } = StackBox { f: AddFlags (1).get() };
107
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
106
+ LL | let StackBox { f: x7 } = StackBox { f: add_flags (1).get() };
107
+ | ^^^^^^^^^^^^ - temporary value is freed at the end of this statement
108
108
| |
109
109
| creates a temporary value which is freed while still in use
110
110
LL |
@@ -113,7 +113,7 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
113
113
|
114
114
help: consider using a `let` binding to create a longer lived value
115
115
|
116
- LL ~ let binding = AddFlags (1);
116
+ LL ~ let binding = add_flags (1);
117
117
LL ~ let StackBox { f: x7 } = StackBox { f: binding.get() };
118
118
|
119
119
0 commit comments