moved tests

This commit is contained in:
Kivooeo 2025-07-01 20:20:14 +05:00
parent bfc046a4b8
commit 47b8a32ca3
27 changed files with 13 additions and 13 deletions

View file

@ -1,5 +1,5 @@
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:30:28
--> $DIR/super-let-lifetime-and-drop.rs:30:28
|
LL | super let b = DropMe(&mut x);
| ------ `x` is borrowed here
@ -11,7 +11,7 @@ LL | }
| - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:46:28
--> $DIR/super-let-lifetime-and-drop.rs:46:28
|
LL | super let b = &DropMe(&mut x);
| --------------
@ -26,7 +26,7 @@ LL | }
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:64:32
--> $DIR/super-let-lifetime-and-drop.rs:64:32
|
LL | super let b = identity(&DropMe(&mut x));
| --------------
@ -40,7 +40,7 @@ LL | };
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:87:36
--> $DIR/super-let-lifetime-and-drop.rs:87:36
|
LL | super let b = identity(&DropMe(&mut x));
| --------------
@ -55,7 +55,7 @@ LL | ));
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:107:28
--> $DIR/super-let-lifetime-and-drop.rs:107:28
|
LL | super let b = DropMe(&mut x);
| ------ `x` is borrowed here
@ -67,7 +67,7 @@ LL | }
| - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:125:28
--> $DIR/super-let-lifetime-and-drop.rs:125:28
|
LL | super let b = DropMe(&mut x);
| ------ `x` is borrowed here
@ -79,7 +79,7 @@ LL | }
| - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:143:28
--> $DIR/super-let-lifetime-and-drop.rs:143:28
|
LL | super let b = DropMe(&mut x);
| ------ `x` is borrowed here
@ -91,7 +91,7 @@ LL | }
| - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:159:28
--> $DIR/super-let-lifetime-and-drop.rs:159:28
|
LL | b = DropMe(&mut x);
| ------ `x` is borrowed here
@ -102,7 +102,7 @@ LL | drop(a);
| - borrow later used here
error[E0716]: temporary value dropped while borrowed
--> $DIR/super-let.rs:172:33
--> $DIR/super-let-lifetime-and-drop.rs:172:33
|
LL | #[cfg(borrowck)] { a = &String::from("asdf"); };
| ^^^^^^^^^^^^^^^^^^^^- temporary value is freed at the end of this statement
@ -115,7 +115,7 @@ LL | let _ = a;
= note: consider using a `let` binding to create a longer lived value
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:206:28
--> $DIR/super-let-lifetime-and-drop.rs:206:28
|
LL | super let d = &DropMe(&mut x);
| --------------
@ -130,7 +130,7 @@ LL | }
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:227:32
--> $DIR/super-let-lifetime-and-drop.rs:227:32
|
LL | super let d = identity(&DropMe(&mut x));
| --------------
@ -145,7 +145,7 @@ LL | };
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:246:28
--> $DIR/super-let-lifetime-and-drop.rs:246:28
|
LL | super let b = DropMe(&mut x);
| ------ `x` is borrowed here
@ -157,7 +157,7 @@ LL | }
| - borrow might be used here, when `b` is dropped and runs the `Drop` code for type `DropMe`
error[E0506]: cannot assign to `x` because it is borrowed
--> $DIR/super-let.rs:263:28
--> $DIR/super-let-lifetime-and-drop.rs:263:28
|
LL | let dropme = Some(DropMe(&mut x));
| ------ `x` is borrowed here