@@ -2,7 +2,7 @@ error[E0382]: use of moved value: `val.0`
2
2
--> $DIR/move-fn-self-receiver.rs:30:5
3
3
|
4
4
LL | val.0.into_iter().next();
5
- | ------ ----------- `val.0` moved due to this method call
5
+ | ----------- `val.0` moved due to this method call
6
6
LL | val.0;
7
7
| ^^^^^ value used here after move
8
8
|
@@ -19,7 +19,7 @@ error[E0382]: use of moved value: `foo`
19
19
LL | let foo = Foo;
20
20
| --- move occurs because `foo` has type `Foo`, which does not implement the `Copy` trait
21
21
LL | foo.use_self();
22
- | ---- ---------- `foo` moved due to this method call
22
+ | ---------- `foo` moved due to this method call
23
23
LL | foo;
24
24
| ^^^ value used here after move
25
25
|
@@ -35,7 +35,7 @@ error[E0382]: use of moved value: `second_foo`
35
35
LL | let second_foo = Foo;
36
36
| ---------- move occurs because `second_foo` has type `Foo`, which does not implement the `Copy` trait
37
37
LL | second_foo.use_self();
38
- | ----------- ---------- `second_foo` moved due to this method call
38
+ | ---------- `second_foo` moved due to this method call
39
39
LL | second_foo;
40
40
| ^^^^^^^^^^ value used here after move
41
41
@@ -45,7 +45,7 @@ error[E0382]: use of moved value: `boxed_foo`
45
45
LL | let boxed_foo = Box::new(Foo);
46
46
| --------- move occurs because `boxed_foo` has type `std::boxed::Box<Foo>`, which does not implement the `Copy` trait
47
47
LL | boxed_foo.use_box_self();
48
- | ---------- -------------- `boxed_foo` moved due to this method call
48
+ | -------------- `boxed_foo` moved due to this method call
49
49
LL | boxed_foo;
50
50
| ^^^^^^^^^ value used here after move
51
51
|
@@ -61,7 +61,7 @@ error[E0382]: use of moved value: `pin_box_foo`
61
61
LL | let pin_box_foo = Box::pin(Foo);
62
62
| ----------- move occurs because `pin_box_foo` has type `std::pin::Pin<std::boxed::Box<Foo>>`, which does not implement the `Copy` trait
63
63
LL | 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
65
65
LL | pin_box_foo;
66
66
| ^^^^^^^^^^^ value used here after move
67
67
|
@@ -87,7 +87,7 @@ error[E0382]: use of moved value: `rc_foo`
87
87
LL | let rc_foo = Rc::new(Foo);
88
88
| ------ move occurs because `rc_foo` has type `std::rc::Rc<Foo>`, which does not implement the `Copy` trait
89
89
LL | rc_foo.use_rc_self();
90
- | ------- ------------- `rc_foo` moved due to this method call
90
+ | ------------- `rc_foo` moved due to this method call
91
91
LL | rc_foo;
92
92
| ^^^^^^ value used here after move
93
93
|
@@ -132,7 +132,7 @@ error[E0382]: use of moved value: `explicit_into_iter`
132
132
LL | let explicit_into_iter = vec![true];
133
133
| ------------------ move occurs because `explicit_into_iter` has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
134
134
LL | 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
136
136
LL | explicit_into_iter;
137
137
| ^^^^^^^^^^^^^^^^^^ value used here after move
138
138
@@ -142,7 +142,7 @@ error[E0382]: use of moved value: `container`
142
142
LL | let container = Container(vec![]);
143
143
| --------- move occurs because `container` has type `Container`, which does not implement the `Copy` trait
144
144
LL | for _val in container.custom_into_iter() {}
145
- | ---------- ------------------ `container` moved due to this method call
145
+ | ------------------ `container` moved due to this method call
146
146
LL | container;
147
147
| ^^^^^^^^^ value used here after move
148
148
|
0 commit comments