1 error[E0716]: temporary value dropped while borrowed
2 --> $DIR/cleanup-rvalue-scopes-cf.rs:26:19
4 LL | let x1 = arg(&AddFlags(1));
5 | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
7 | creates a temporary which is freed while still in use
9 LL | (x1, x2, x3, x4, x5, x6, x7);
10 | -- borrow later used here
12 = note: consider using a `let` binding to create a longer lived value
14 error[E0716]: temporary value dropped while borrowed
15 --> $DIR/cleanup-rvalue-scopes-cf.rs:27:14
17 LL | let x2 = AddFlags(1).get();
18 | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
20 | creates a temporary which is freed while still in use
22 LL | (x1, x2, x3, x4, x5, x6, x7);
23 | -- borrow later used here
25 = note: consider using a `let` binding to create a longer lived value
27 error[E0716]: temporary value dropped while borrowed
28 --> $DIR/cleanup-rvalue-scopes-cf.rs:28:21
30 LL | let x3 = &*arg(&AddFlags(1));
31 | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
33 | creates a temporary which is freed while still in use
35 LL | (x1, x2, x3, x4, x5, x6, x7);
36 | -- borrow later used here
38 = note: consider using a `let` binding to create a longer lived value
40 error[E0716]: temporary value dropped while borrowed
41 --> $DIR/cleanup-rvalue-scopes-cf.rs:29:24
43 LL | let ref x4 = *arg(&AddFlags(1));
44 | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
46 | creates a temporary which is freed while still in use
48 LL | (x1, x2, x3, x4, x5, x6, x7);
49 | -- borrow later used here
51 = note: consider using a `let` binding to create a longer lived value
53 error[E0716]: temporary value dropped while borrowed
54 --> $DIR/cleanup-rvalue-scopes-cf.rs:30:24
56 LL | let &ref x5 = arg(&AddFlags(1));
57 | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
59 | creates a temporary which is freed while still in use
61 LL | (x1, x2, x3, x4, x5, x6, x7);
62 | -- borrow later used here
64 = note: consider using a `let` binding to create a longer lived value
66 error[E0716]: temporary value dropped while borrowed
67 --> $DIR/cleanup-rvalue-scopes-cf.rs:31:14
69 LL | let x6 = AddFlags(1).get();
70 | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
72 | creates a temporary which is freed while still in use
74 LL | (x1, x2, x3, x4, x5, x6, x7);
75 | -- borrow later used here
77 = note: consider using a `let` binding to create a longer lived value
79 error[E0716]: temporary value dropped while borrowed
80 --> $DIR/cleanup-rvalue-scopes-cf.rs:32:44
82 LL | let StackBox { f: x7 } = StackBox { f: AddFlags(1).get() };
83 | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
85 | creates a temporary which is freed while still in use
87 LL | (x1, x2, x3, x4, x5, x6, x7);
88 | -- borrow later used here
90 = note: consider using a `let` binding to create a longer lived value
92 error: aborting due to 7 previous errors
94 For more information about this error, try `rustc --explain E0716`.