@@ -2,7 +2,7 @@ error[E0382]: use of moved value: `val.0`
22 --> $DIR/move-fn-self-receiver.rs:30:5
33 |
44LL | val.0.into_iter().next();
5- | ------ ----------- `val.0` moved due to this method call
5+ | ----------- `val.0` moved due to this method call
66LL | val.0;
77 | ^^^^^ value used here after move
88 |
@@ -19,7 +19,7 @@ error[E0382]: use of moved value: `foo`
1919LL | let foo = Foo;
2020 | --- move occurs because `foo` has type `Foo`, which does not implement the `Copy` trait
2121LL | foo.use_self();
22- | ---- ---------- `foo` moved due to this method call
22+ | ---------- `foo` moved due to this method call
2323LL | foo;
2424 | ^^^ value used here after move
2525 |
@@ -35,7 +35,7 @@ error[E0382]: use of moved value: `second_foo`
3535LL | let second_foo = Foo;
3636 | ---------- move occurs because `second_foo` has type `Foo`, which does not implement the `Copy` trait
3737LL | second_foo.use_self();
38- | ----------- ---------- `second_foo` moved due to this method call
38+ | ---------- `second_foo` moved due to this method call
3939LL | second_foo;
4040 | ^^^^^^^^^^ value used here after move
4141
@@ -45,7 +45,7 @@ error[E0382]: use of moved value: `boxed_foo`
4545LL | let boxed_foo = Box::new(Foo);
4646 | --------- move occurs because `boxed_foo` has type `std::boxed::Box<Foo>`, which does not implement the `Copy` trait
4747LL | boxed_foo.use_box_self();
48- | ---------- -------------- `boxed_foo` moved due to this method call
48+ | -------------- `boxed_foo` moved due to this method call
4949LL | boxed_foo;
5050 | ^^^^^^^^^ value used here after move
5151 |
@@ -61,7 +61,7 @@ error[E0382]: use of moved value: `pin_box_foo`
6161LL | let pin_box_foo = Box::pin(Foo);
6262 | ----------- move occurs because `pin_box_foo` has type `std::pin::Pin<std::boxed::Box<Foo>>`, which does not implement the `Copy` trait
6363LL | pin_box_foo.use_pin_box_self();
64- | ------------ ------------------ `pin_box_foo` moved due to this method call
64+ | ------------------ `pin_box_foo` moved due to this method call
6565LL | pin_box_foo;
6666 | ^^^^^^^^^^^ value used here after move
6767 |
@@ -87,7 +87,7 @@ error[E0382]: use of moved value: `rc_foo`
8787LL | let rc_foo = Rc::new(Foo);
8888 | ------ move occurs because `rc_foo` has type `std::rc::Rc<Foo>`, which does not implement the `Copy` trait
8989LL | rc_foo.use_rc_self();
90- | ------- ------------- `rc_foo` moved due to this method call
90+ | ------------- `rc_foo` moved due to this method call
9191LL | rc_foo;
9292 | ^^^^^^ value used here after move
9393 |
@@ -132,7 +132,7 @@ error[E0382]: use of moved value: `explicit_into_iter`
132132LL | let explicit_into_iter = vec![true];
133133 | ------------------ move occurs because `explicit_into_iter` has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
134134LL | for _val in explicit_into_iter.into_iter() {}
135- | ------------------- ----------- `explicit_into_iter` moved due to this method call
135+ | ----------- `explicit_into_iter` moved due to this method call
136136LL | explicit_into_iter;
137137 | ^^^^^^^^^^^^^^^^^^ value used here after move
138138
@@ -142,7 +142,7 @@ error[E0382]: use of moved value: `container`
142142LL | let container = Container(vec![]);
143143 | --------- move occurs because `container` has type `Container`, which does not implement the `Copy` trait
144144LL | for _val in container.custom_into_iter() {}
145- | ---------- ------------------ `container` moved due to this method call
145+ | ------------------ `container` moved due to this method call
146146LL | container;
147147 | ^^^^^^^^^ value used here after move
148148 |
0 commit comments