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