1
- error[E0277]: the trait bound `Vec<u32>: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:36:23: 41:6]`
2
- --> $DIR/clone-impl.rs:42:5
3
- |
4
- LL | let gen_clone_0 = move || {
5
- | _______________________-
6
- LL | | let v = vec!['a'];
7
- LL | | yield;
8
- LL | | drop(v);
9
- LL | | drop(clonable_0);
10
- LL | | };
11
- | |_____- within this `[generator@$DIR/clone-impl.rs:36:23: 41:6]`
12
- LL | check_copy(&gen_clone_0);
13
- | ^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:36:23: 41:6]`, the trait `Copy` is not implemented for `Vec<u32>`
1
+ error[E0277]: the trait bound `Vec<u32>: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:36:23: 36:30]`
2
+ --> $DIR/clone-impl.rs:42:16
3
+ |
4
+ LL | let gen_clone_0 = move || {
5
+ | ------- within this `[generator@$DIR/clone-impl.rs:36:23: 36:30]`
6
+ ...
7
+ LL | check_copy(&gen_clone_0);
8
+ | ^^^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:36:23: 36:30]`, the trait `Copy` is not implemented for `Vec<u32>`
14
9
|
15
10
note: captured value does not implement `Copy`
16
11
--> $DIR/clone-impl.rs:40:14
@@ -23,19 +18,14 @@ note: required by a bound in `check_copy`
23
18
LL | fn check_copy<T: Copy>(_x: &T) {}
24
19
| ^^^^ required by this bound in `check_copy`
25
20
26
- error[E0277]: the trait bound `Vec<char>: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:36:23: 41:6]`
27
- --> $DIR/clone-impl.rs:42:5
28
- |
29
- LL | let gen_clone_0 = move || {
30
- | _______________________-
31
- LL | | let v = vec!['a'];
32
- LL | | yield;
33
- LL | | drop(v);
34
- LL | | drop(clonable_0);
35
- LL | | };
36
- | |_____- within this `[generator@$DIR/clone-impl.rs:36:23: 41:6]`
37
- LL | check_copy(&gen_clone_0);
38
- | ^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:36:23: 41:6]`, the trait `Copy` is not implemented for `Vec<char>`
21
+ error[E0277]: the trait bound `Vec<char>: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:36:23: 36:30]`
22
+ --> $DIR/clone-impl.rs:42:16
23
+ |
24
+ LL | let gen_clone_0 = move || {
25
+ | ------- within this `[generator@$DIR/clone-impl.rs:36:23: 36:30]`
26
+ ...
27
+ LL | check_copy(&gen_clone_0);
28
+ | ^^^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:36:23: 36:30]`, the trait `Copy` is not implemented for `Vec<char>`
39
29
|
40
30
note: generator does not implement `Copy` as this value is used across a yield
41
31
--> $DIR/clone-impl.rs:38:9
@@ -53,20 +43,14 @@ note: required by a bound in `check_copy`
53
43
LL | fn check_copy<T: Copy>(_x: &T) {}
54
44
| ^^^^ required by this bound in `check_copy`
55
45
56
- error[E0277]: the trait bound `Vec<u32>: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:46:23: 57:6]`
57
- --> $DIR/clone-impl.rs:58:5
58
- |
59
- LL | let gen_clone_1 = move || {
60
- | _______________________-
61
- LL | | let v = vec!['a'];
62
- LL | | /*
63
- LL | | let n = NonClone;
64
- ... |
65
- LL | | drop(clonable_1);
66
- LL | | };
67
- | |_____- within this `[generator@$DIR/clone-impl.rs:46:23: 57:6]`
68
- LL | check_copy(&gen_clone_1);
69
- | ^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:46:23: 57:6]`, the trait `Copy` is not implemented for `Vec<u32>`
46
+ error[E0277]: the trait bound `Vec<u32>: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:46:23: 46:30]`
47
+ --> $DIR/clone-impl.rs:58:16
48
+ |
49
+ LL | let gen_clone_1 = move || {
50
+ | ------- within this `[generator@$DIR/clone-impl.rs:46:23: 46:30]`
51
+ ...
52
+ LL | check_copy(&gen_clone_1);
53
+ | ^^^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:46:23: 46:30]`, the trait `Copy` is not implemented for `Vec<u32>`
70
54
|
71
55
note: captured value does not implement `Copy`
72
56
--> $DIR/clone-impl.rs:56:14
@@ -79,20 +63,14 @@ note: required by a bound in `check_copy`
79
63
LL | fn check_copy<T: Copy>(_x: &T) {}
80
64
| ^^^^ required by this bound in `check_copy`
81
65
82
- error[E0277]: the trait bound `Vec<char>: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:46:23: 57:6]`
83
- --> $DIR/clone-impl.rs:58:5
84
- |
85
- LL | let gen_clone_1 = move || {
86
- | _______________________-
87
- LL | | let v = vec!['a'];
88
- LL | | /*
89
- LL | | let n = NonClone;
90
- ... |
91
- LL | | drop(clonable_1);
92
- LL | | };
93
- | |_____- within this `[generator@$DIR/clone-impl.rs:46:23: 57:6]`
94
- LL | check_copy(&gen_clone_1);
95
- | ^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:46:23: 57:6]`, the trait `Copy` is not implemented for `Vec<char>`
66
+ error[E0277]: the trait bound `Vec<char>: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:46:23: 46:30]`
67
+ --> $DIR/clone-impl.rs:58:16
68
+ |
69
+ LL | let gen_clone_1 = move || {
70
+ | ------- within this `[generator@$DIR/clone-impl.rs:46:23: 46:30]`
71
+ ...
72
+ LL | check_copy(&gen_clone_1);
73
+ | ^^^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:46:23: 46:30]`, the trait `Copy` is not implemented for `Vec<char>`
96
74
|
97
75
note: generator does not implement `Copy` as this value is used across a yield
98
76
--> $DIR/clone-impl.rs:52:9
@@ -111,17 +89,14 @@ note: required by a bound in `check_copy`
111
89
LL | fn check_copy<T: Copy>(_x: &T) {}
112
90
| ^^^^ required by this bound in `check_copy`
113
91
114
- error[E0277]: the trait bound `NonClone: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:62:25: 65:6]`
115
- --> $DIR/clone-impl.rs:66:5
116
- |
117
- LL | let gen_non_clone = move || {
118
- | _________________________-
119
- LL | | yield;
120
- LL | | drop(non_clonable);
121
- LL | | };
122
- | |_____- within this `[generator@$DIR/clone-impl.rs:62:25: 65:6]`
123
- LL | check_copy(&gen_non_clone);
124
- | ^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:62:25: 65:6]`, the trait `Copy` is not implemented for `NonClone`
92
+ error[E0277]: the trait bound `NonClone: Copy` is not satisfied in `[generator@$DIR/clone-impl.rs:62:25: 62:32]`
93
+ --> $DIR/clone-impl.rs:66:16
94
+ |
95
+ LL | let gen_non_clone = move || {
96
+ | ------- within this `[generator@$DIR/clone-impl.rs:62:25: 62:32]`
97
+ ...
98
+ LL | check_copy(&gen_non_clone);
99
+ | ^^^^^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:62:25: 62:32]`, the trait `Copy` is not implemented for `NonClone`
125
100
|
126
101
note: captured value does not implement `Copy`
127
102
--> $DIR/clone-impl.rs:64:14
@@ -138,18 +113,14 @@ help: consider annotating `NonClone` with `#[derive(Copy)]`
138
113
LL | #[derive(Copy)]
139
114
|
140
115
141
- error[E0277]: the trait bound `NonClone: Clone` is not satisfied in `[generator@$DIR/clone-impl.rs:62:25: 65:6]`
142
- --> $DIR/clone-impl.rs:68:5
143
- |
144
- LL | let gen_non_clone = move || {
145
- | _________________________-
146
- LL | | yield;
147
- LL | | drop(non_clonable);
148
- LL | | };
149
- | |_____- within this `[generator@$DIR/clone-impl.rs:62:25: 65:6]`
116
+ error[E0277]: the trait bound `NonClone: Clone` is not satisfied in `[generator@$DIR/clone-impl.rs:62:25: 62:32]`
117
+ --> $DIR/clone-impl.rs:68:17
118
+ |
119
+ LL | let gen_non_clone = move || {
120
+ | ------- within this `[generator@$DIR/clone-impl.rs:62:25: 62:32]`
150
121
...
151
- LL | check_clone(&gen_non_clone);
152
- | ^^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:62:25: 65:6 ]`, the trait `Clone` is not implemented for `NonClone`
122
+ LL | check_clone(&gen_non_clone);
123
+ | ^^^^^^^^^^^^^^ within `[generator@$DIR/clone-impl.rs:62:25: 62:32 ]`, the trait `Clone` is not implemented for `NonClone`
153
124
|
154
125
note: captured value does not implement `Clone`
155
126
--> $DIR/clone-impl.rs:64:14
0 commit comments