1 error[E0597]: borrowed value does not live long enough
2 --> $DIR/cleanup-rvalue-scopes-cf.rs:38:19
4 LL | let _x = arg(&AddFlags(1)); //~ ERROR value does not live long enough
5 | ^^^^^^^^^^^ - temporary value dropped here while still borrowed
7 | temporary value does not live long enough
10 | - temporary value needs to live until here
12 = note: consider using a `let` binding to increase its lifetime
14 error[E0597]: borrowed value does not live long enough
15 --> $DIR/cleanup-rvalue-scopes-cf.rs:39:14
17 LL | let _x = AddFlags(1).get(); //~ ERROR value does not live long enough
18 | ^^^^^^^^^^^ - temporary value dropped here while still borrowed
20 | temporary value does not live long enough
23 | - temporary value needs to live until here
25 = note: consider using a `let` binding to increase its lifetime
27 error[E0597]: borrowed value does not live long enough
28 --> $DIR/cleanup-rvalue-scopes-cf.rs:40:21
30 LL | let _x = &*arg(&AddFlags(1)); //~ ERROR value does not live long enough
31 | ^^^^^^^^^^^ - temporary value dropped here while still borrowed
33 | temporary value does not live long enough
36 | - temporary value needs to live until here
38 = note: consider using a `let` binding to increase its lifetime
40 error[E0597]: borrowed value does not live long enough
41 --> $DIR/cleanup-rvalue-scopes-cf.rs:41:24
43 LL | let ref _x = *arg(&AddFlags(1)); //~ ERROR value does not live long enough
44 | ^^^^^^^^^^^ - temporary value dropped here while still borrowed
46 | temporary value does not live long enough
49 | - temporary value needs to live until here
51 = note: consider using a `let` binding to increase its lifetime
53 error[E0597]: borrowed value does not live long enough
54 --> $DIR/cleanup-rvalue-scopes-cf.rs:42:24
56 LL | let &ref _x = arg(&AddFlags(1)); //~ ERROR value does not live long enough
57 | ^^^^^^^^^^^ - temporary value dropped here while still borrowed
59 | temporary value does not live long enough
62 | - temporary value needs to live until here
64 = note: consider using a `let` binding to increase its lifetime
66 error[E0597]: borrowed value does not live long enough
67 --> $DIR/cleanup-rvalue-scopes-cf.rs:43:14
69 LL | let _x = AddFlags(1).get(); //~ ERROR value does not live long enough
70 | ^^^^^^^^^^^ - temporary value dropped here while still borrowed
72 | temporary value does not live long enough
73 LL | let Box { f: _x } = Box { f: AddFlags(1).get() }; //~ ERROR value does not live long enough
75 | - temporary value needs to live until here
77 = note: consider using a `let` binding to increase its lifetime
79 error[E0597]: borrowed value does not live long enough
80 --> $DIR/cleanup-rvalue-scopes-cf.rs:44:34
82 LL | let Box { f: _x } = Box { f: AddFlags(1).get() }; //~ ERROR value does not live long enough
83 | ^^^^^^^^^^^ - temporary value dropped here while still borrowed
85 | temporary value does not live long enough
87 | - temporary value needs to live until here
89 = note: consider using a `let` binding to increase its lifetime
91 error: aborting due to 7 previous errors
93 For more information about this error, try `rustc --explain E0597`.