Rebase fallout.

This commit is contained in:
Camille GILLOT 2022-09-08 16:44:45 +02:00
parent 52f2350c63
commit ce9daa2f91
4 changed files with 8 additions and 12 deletions

View File

@ -71,9 +71,8 @@ error[E0382]: use of moved value
--> $DIR/borrowck-move-and-move.rs:22:12 --> $DIR/borrowck-move-and-move.rs:22:12
| |
LL | fn fun(a @ b: U) {} LL | fn fun(a @ b: U) {}
| ^---- | ^ - value moved here
| | | | |
| | value moved here
| value used here after move | value used here after move
| move occurs because value has type `U`, which does not implement the `Copy` trait | move occurs because value has type `U`, which does not implement the `Copy` trait

View File

@ -314,9 +314,8 @@ error[E0382]: borrow of moved value
--> $DIR/borrowck-pat-by-move-and-ref.rs:11:11 --> $DIR/borrowck-pat-by-move-and-ref.rs:11:11
| |
LL | fn f1(ref a @ b: U) {} LL | fn f1(ref a @ b: U) {}
| ^^^^^---- | ^^^^^ - value moved here
| | | | |
| | value moved here
| value borrowed here after move | value borrowed here after move
| move occurs because value has type `U`, which does not implement the `Copy` trait | move occurs because value has type `U`, which does not implement the `Copy` trait

View File

@ -434,9 +434,8 @@ error[E0382]: borrow of moved value
--> $DIR/borrowck-pat-ref-mut-and-ref.rs:28:30 --> $DIR/borrowck-pat-ref-mut-and-ref.rs:28:30
| |
LL | fn f4_also_moved(ref a @ ref mut b @ c: U) {} LL | fn f4_also_moved(ref a @ ref mut b @ c: U) {}
| --------^^^^^^^^^---- | ----- ^^^^^^^^^ - value moved here
| | | | | | |
| | | value moved here
| | value borrowed here after move | | value borrowed here after move
| move occurs because value has type `U`, which does not implement the `Copy` trait | move occurs because value has type `U`, which does not implement the `Copy` trait

View File

@ -328,9 +328,8 @@ error[E0382]: borrow of moved value
--> $DIR/borrowck-pat-ref-mut-twice.rs:21:34 --> $DIR/borrowck-pat-ref-mut-twice.rs:21:34
| |
LL | fn f4_also_moved(ref mut a @ ref mut b @ c: U) {} LL | fn f4_also_moved(ref mut a @ ref mut b @ c: U) {}
| ------------^^^^^^^^^---- | --------- ^^^^^^^^^ - value moved here
| | | | | | |
| | | value moved here
| | value borrowed here after move | | value borrowed here after move
| move occurs because value has type `U`, which does not implement the `Copy` trait | move occurs because value has type `U`, which does not implement the `Copy` trait