@@ -6,7 +6,7 @@ LL | val.0.into_iter().next();
6
6
LL | val.0;
7
7
| ^^^^^ value used here after move
8
8
|
9
- note: this function consumes the receiver `self` by taking ownership of it , which moves `val.0`
9
+ note: this function takes ownership of the receiver `self`, which moves `val.0`
10
10
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
11
11
|
12
12
LL | fn into_iter(self) -> Self::IntoIter;
@@ -23,7 +23,7 @@ LL | foo.use_self();
23
23
LL | foo;
24
24
| ^^^ value used here after move
25
25
|
26
- note: this function consumes the receiver `self` by taking ownership of it , which moves `foo`
26
+ note: this function takes ownership of the receiver `self`, which moves `foo`
27
27
--> $DIR/move-fn-self-receiver.rs:13:17
28
28
|
29
29
LL | fn use_self(self) {}
@@ -49,7 +49,7 @@ LL | boxed_foo.use_box_self();
49
49
LL | boxed_foo;
50
50
| ^^^^^^^^^ value used here after move
51
51
|
52
- note: this function consumes the receiver `self` by taking ownership of it , which moves `boxed_foo`
52
+ note: this function takes ownership of the receiver `self`, which moves `boxed_foo`
53
53
--> $DIR/move-fn-self-receiver.rs:14:21
54
54
|
55
55
LL | fn use_box_self(self: Box<Self>) {}
@@ -65,7 +65,7 @@ LL | pin_box_foo.use_pin_box_self();
65
65
LL | pin_box_foo;
66
66
| ^^^^^^^^^^^ value used here after move
67
67
|
68
- note: this function consumes the receiver `self` by taking ownership of it , which moves `pin_box_foo`
68
+ note: this function takes ownership of the receiver `self`, which moves `pin_box_foo`
69
69
--> $DIR/move-fn-self-receiver.rs:15:25
70
70
|
71
71
LL | fn use_pin_box_self(self: Pin<Box<Self>>) {}
@@ -91,7 +91,7 @@ LL | rc_foo.use_rc_self();
91
91
LL | rc_foo;
92
92
| ^^^^^^ value used here after move
93
93
|
94
- note: this function consumes the receiver `self` by taking ownership of it , which moves `rc_foo`
94
+ note: this function takes ownership of the receiver `self`, which moves `rc_foo`
95
95
--> $DIR/move-fn-self-receiver.rs:16:20
96
96
|
97
97
LL | fn use_rc_self(self: Rc<Self>) {}
@@ -146,7 +146,7 @@ LL | for _val in container.custom_into_iter() {}
146
146
LL | container;
147
147
| ^^^^^^^^^ value used here after move
148
148
|
149
- note: this function consumes the receiver `self` by taking ownership of it , which moves `container`
149
+ note: this function takes ownership of the receiver `self`, which moves `container`
150
150
--> $DIR/move-fn-self-receiver.rs:23:25
151
151
|
152
152
LL | fn custom_into_iter(self) -> impl Iterator<Item = bool> {
0 commit comments