11error[E0716]: temporary value dropped while borrowed
2- --> $DIR/cleanup-rvalue-scopes-cf.rs:26 :19
2+ --> $DIR/cleanup-rvalue-scopes-cf.rs:30 :19
33 |
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
66 | |
77 | creates a temporary value which is freed while still in use
88...
@@ -11,15 +11,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
1111 |
1212help: consider using a `let` binding to create a longer lived value
1313 |
14- LL ~ let binding = AddFlags (1);
14+ LL ~ let binding = add_flags (1);
1515LL ~ let x1 = arg(&binding);
1616 |
1717
1818error[E0716]: temporary value dropped while borrowed
19- --> $DIR/cleanup-rvalue-scopes-cf.rs:27 :14
19+ --> $DIR/cleanup-rvalue-scopes-cf.rs:31 :14
2020 |
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
2323 | |
2424 | creates a temporary value which is freed while still in use
2525...
@@ -28,15 +28,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
2828 |
2929help: consider using a `let` binding to create a longer lived value
3030 |
31- LL ~ let binding = AddFlags (1);
31+ LL ~ let binding = add_flags (1);
3232LL ~ let x2 = binding.get();
3333 |
3434
3535error[E0716]: temporary value dropped while borrowed
36- --> $DIR/cleanup-rvalue-scopes-cf.rs:28 :21
36+ --> $DIR/cleanup-rvalue-scopes-cf.rs:32 :21
3737 |
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
4040 | |
4141 | creates a temporary value which is freed while still in use
4242...
@@ -45,15 +45,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
4545 |
4646help: consider using a `let` binding to create a longer lived value
4747 |
48- LL ~ let binding = AddFlags (1);
48+ LL ~ let binding = add_flags (1);
4949LL ~ let x3 = &*arg(&binding);
5050 |
5151
5252error[E0716]: temporary value dropped while borrowed
53- --> $DIR/cleanup-rvalue-scopes-cf.rs:29 :24
53+ --> $DIR/cleanup-rvalue-scopes-cf.rs:33 :24
5454 |
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
5757 | |
5858 | creates a temporary value which is freed while still in use
5959...
@@ -62,15 +62,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
6262 |
6363help: consider using a `let` binding to create a longer lived value
6464 |
65- LL ~ let binding = AddFlags (1);
65+ LL ~ let binding = add_flags (1);
6666LL ~ let ref x4 = *arg(&binding);
6767 |
6868
6969error[E0716]: temporary value dropped while borrowed
70- --> $DIR/cleanup-rvalue-scopes-cf.rs:30 :24
70+ --> $DIR/cleanup-rvalue-scopes-cf.rs:34 :24
7171 |
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
7474 | |
7575 | creates a temporary value which is freed while still in use
7676...
@@ -79,15 +79,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
7979 |
8080help: consider using a `let` binding to create a longer lived value
8181 |
82- LL ~ let binding = AddFlags (1);
82+ LL ~ let binding = add_flags (1);
8383LL ~ let &ref x5 = arg(&binding);
8484 |
8585
8686error[E0716]: temporary value dropped while borrowed
87- --> $DIR/cleanup-rvalue-scopes-cf.rs:31 :14
87+ --> $DIR/cleanup-rvalue-scopes-cf.rs:35 :14
8888 |
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
9191 | |
9292 | creates a temporary value which is freed while still in use
9393...
@@ -96,15 +96,15 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
9696 |
9797help: consider using a `let` binding to create a longer lived value
9898 |
99- LL ~ let binding = AddFlags (1);
99+ LL ~ let binding = add_flags (1);
100100LL ~ let x6 = binding.get();
101101 |
102102
103103error[E0716]: temporary value dropped while borrowed
104- --> $DIR/cleanup-rvalue-scopes-cf.rs:32 :44
104+ --> $DIR/cleanup-rvalue-scopes-cf.rs:36 :44
105105 |
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
108108 | |
109109 | creates a temporary value which is freed while still in use
110110LL |
@@ -113,7 +113,7 @@ LL | (x1, x2, x3, x4, x5, x6, x7);
113113 |
114114help: consider using a `let` binding to create a longer lived value
115115 |
116- LL ~ let binding = AddFlags (1);
116+ LL ~ let binding = add_flags (1);
117117LL ~ let StackBox { f: x7 } = StackBox { f: binding.get() };
118118 |
119119
0 commit comments