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