11error[E0506]: cannot assign to `x` because it is borrowed
2- --> $DIR/super-let.rs:30:28
2+ --> $DIR/super-let-lifetime-and-drop .rs:30:28
33 |
44LL | super let b = DropMe(&mut x);
55 | ------ `x` is borrowed here
1111 | - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
1212
1313error[E0506]: cannot assign to `x` because it is borrowed
14- --> $DIR/super-let.rs:46:28
14+ --> $DIR/super-let-lifetime-and-drop .rs:46:28
1515 |
1616LL | super let b = &DropMe(&mut x);
1717 | --------------
2626 | - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
2727
2828error[E0506]: cannot assign to `x` because it is borrowed
29- --> $DIR/super-let.rs:64:32
29+ --> $DIR/super-let-lifetime-and-drop .rs:64:32
3030 |
3131LL | super let b = identity(&DropMe(&mut x));
3232 | --------------
@@ -40,7 +40,7 @@ LL | };
4040 | - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
4141
4242error[E0506]: cannot assign to `x` because it is borrowed
43- --> $DIR/super-let.rs:87:36
43+ --> $DIR/super-let-lifetime-and-drop .rs:87:36
4444 |
4545LL | super let b = identity(&DropMe(&mut x));
4646 | --------------
@@ -55,7 +55,7 @@ LL | ));
5555 | - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
5656
5757error[E0506]: cannot assign to `x` because it is borrowed
58- --> $DIR/super-let.rs:107:28
58+ --> $DIR/super-let-lifetime-and-drop .rs:107:28
5959 |
6060LL | super let b = DropMe(&mut x);
6161 | ------ `x` is borrowed here
6767 | - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
6868
6969error[E0506]: cannot assign to `x` because it is borrowed
70- --> $DIR/super-let.rs:125:28
70+ --> $DIR/super-let-lifetime-and-drop .rs:125:28
7171 |
7272LL | super let b = DropMe(&mut x);
7373 | ------ `x` is borrowed here
7979 | - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
8080
8181error[E0506]: cannot assign to `x` because it is borrowed
82- --> $DIR/super-let.rs:143:28
82+ --> $DIR/super-let-lifetime-and-drop .rs:143:28
8383 |
8484LL | super let b = DropMe(&mut x);
8585 | ------ `x` is borrowed here
9191 | - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
9292
9393error[E0506]: cannot assign to `x` because it is borrowed
94- --> $DIR/super-let.rs:159:28
94+ --> $DIR/super-let-lifetime-and-drop .rs:159:28
9595 |
9696LL | b = DropMe(&mut x);
9797 | ------ `x` is borrowed here
@@ -102,7 +102,7 @@ LL | drop(a);
102102 | - borrow later used here
103103
104104error[E0716]: temporary value dropped while borrowed
105- --> $DIR/super-let.rs:172:33
105+ --> $DIR/super-let-lifetime-and-drop .rs:172:33
106106 |
107107LL | #[cfg(borrowck)] { a = &String::from("asdf"); };
108108 | ^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement
@@ -115,7 +115,7 @@ LL | let _ = a;
115115 = note: consider using a `let` binding to create a longer lived value
116116
117117error[E0506]: cannot assign to `x` because it is borrowed
118- --> $DIR/super-let.rs:206:28
118+ --> $DIR/super-let-lifetime-and-drop .rs:206:28
119119 |
120120LL | super let d = &DropMe(&mut x);
121121 | --------------
@@ -130,7 +130,7 @@ LL | }
130130 | - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
131131
132132error[E0506]: cannot assign to `x` because it is borrowed
133- --> $DIR/super-let.rs:227:32
133+ --> $DIR/super-let-lifetime-and-drop .rs:227:32
134134 |
135135LL | super let d = identity(&DropMe(&mut x));
136136 | --------------
@@ -145,7 +145,7 @@ LL | };
145145 | - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
146146
147147error[E0506]: cannot assign to `x` because it is borrowed
148- --> $DIR/super-let.rs:246:28
148+ --> $DIR/super-let-lifetime-and-drop .rs:246:28
149149 |
150150LL | super let b = DropMe(&mut x);
151151 | ------ `x` is borrowed here
@@ -157,7 +157,7 @@ LL | }
157157 | - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
158158
159159error[E0506]: cannot assign to `x` because it is borrowed
160- --> $DIR/super-let.rs:263:28
160+ --> $DIR/super-let-lifetime-and-drop .rs:263:28
161161 |
162162LL | let dropme = Some(DropMe(&mut x));
163163 | ------ `x` is borrowed here
0 commit comments