@@ -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 takes ownership of the receiver `self`, which moves `val.0`
9
+ note: `into_iter` takes ownership of the receiver `self`, which moves `val.0`
10
10
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
11
11
= note: move occurs because `val.0` has type `Vec<bool>`, which does not implement the `Copy` trait
12
12
@@ -20,7 +20,7 @@ LL | foo.use_self();
20
20
LL | foo;
21
21
| ^^^ value used here after move
22
22
|
23
- note: this function takes ownership of the receiver `self`, which moves `foo`
23
+ note: `Foo::use_self` takes ownership of the receiver `self`, which moves `foo`
24
24
--> $DIR/move-fn-self-receiver.rs:13:17
25
25
|
26
26
LL | fn use_self(self) {}
@@ -46,7 +46,7 @@ LL | boxed_foo.use_box_self();
46
46
LL | boxed_foo;
47
47
| ^^^^^^^^^ value used here after move
48
48
|
49
- note: this function takes ownership of the receiver `self`, which moves `boxed_foo`
49
+ note: `Foo::use_box_self` takes ownership of the receiver `self`, which moves `boxed_foo`
50
50
--> $DIR/move-fn-self-receiver.rs:14:21
51
51
|
52
52
LL | fn use_box_self(self: Box<Self>) {}
@@ -62,7 +62,7 @@ LL | pin_box_foo.use_pin_box_self();
62
62
LL | pin_box_foo;
63
63
| ^^^^^^^^^^^ value used here after move
64
64
|
65
- note: this function takes ownership of the receiver `self`, which moves `pin_box_foo`
65
+ note: `Foo::use_pin_box_self` takes ownership of the receiver `self`, which moves `pin_box_foo`
66
66
--> $DIR/move-fn-self-receiver.rs:15:25
67
67
|
68
68
LL | fn use_pin_box_self(self: Pin<Box<Self>>) {}
@@ -88,7 +88,7 @@ LL | rc_foo.use_rc_self();
88
88
LL | rc_foo;
89
89
| ^^^^^^ value used here after move
90
90
|
91
- note: this function takes ownership of the receiver `self`, which moves `rc_foo`
91
+ note: `Foo::use_rc_self` takes ownership of the receiver `self`, which moves `rc_foo`
92
92
--> $DIR/move-fn-self-receiver.rs:16:20
93
93
|
94
94
LL | fn use_rc_self(self: Rc<Self>) {}
@@ -154,7 +154,7 @@ LL | for _val in container.custom_into_iter() {}
154
154
LL | container;
155
155
| ^^^^^^^^^ value used here after move
156
156
|
157
- note: this function takes ownership of the receiver `self`, which moves `container`
157
+ note: `Container::custom_into_iter` takes ownership of the receiver `self`, which moves `container`
158
158
--> $DIR/move-fn-self-receiver.rs:23:25
159
159
|
160
160
LL | fn custom_into_iter(self) -> impl Iterator<Item = bool> {
0 commit comments