Skip to content

Commit dcbae2c

Browse files
committed
moved tests
1 parent f46ce66 commit dcbae2c

27 files changed

+13
-13
lines changed

tests/ui/super-let.borrowck.stderr renamed to tests/ui/borrowck/super-let-lifetime-and-drop.borrowck.stderr

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[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
|
44
LL | super let b = DropMe(&mut x);
55
| ------ `x` is borrowed here
@@ -11,7 +11,7 @@ LL | }
1111
| - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
1212

1313
error[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
|
1616
LL | super let b = &DropMe(&mut x);
1717
| --------------
@@ -26,7 +26,7 @@ LL | }
2626
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
2727

2828
error[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
|
3131
LL | 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

4242
error[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
|
4545
LL | 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

5757
error[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
|
6060
LL | super let b = DropMe(&mut x);
6161
| ------ `x` is borrowed here
@@ -67,7 +67,7 @@ LL | }
6767
| - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
6868

6969
error[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
|
7272
LL | super let b = DropMe(&mut x);
7373
| ------ `x` is borrowed here
@@ -79,7 +79,7 @@ LL | }
7979
| - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
8080

8181
error[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
|
8484
LL | super let b = DropMe(&mut x);
8585
| ------ `x` is borrowed here
@@ -91,7 +91,7 @@ LL | }
9191
| - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
9292

9393
error[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
|
9696
LL | b = DropMe(&mut x);
9797
| ------ `x` is borrowed here
@@ -102,7 +102,7 @@ LL | drop(a);
102102
| - borrow later used here
103103

104104
error[E0716]: temporary value dropped while borrowed
105-
--> $DIR/super-let.rs:172:33
105+
--> $DIR/super-let-lifetime-and-drop.rs:172:33
106106
|
107107
LL | #[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

117117
error[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
|
120120
LL | 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

132132
error[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
|
135135
LL | 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

147147
error[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
|
150150
LL | 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

159159
error[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
|
162162
LL | let dropme = Some(DropMe(&mut x));
163163
| ------ `x` is borrowed here
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)