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
33 |
44LL | 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}`
66...
77LL | 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>`
99 |
1010note: captured value does not implement `Copy`
11- --> $DIR/clone-impl.rs:47 :14
11+ --> $DIR/clone-impl.rs:48 :14
1212 |
1313LL | drop(clonable_0);
1414 | ^^^^^^^^^^ has type `Vec<u32>` which does not implement `Copy`
1515note: required by a bound in `check_copy`
16- --> $DIR/clone-impl.rs:89 :18
16+ --> $DIR/clone-impl.rs:90 :18
1717 |
1818LL | fn check_copy<T: Copy>(_x: &T) {}
1919 | ^^^^ required by this bound in `check_copy`
2020
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
2323 |
2424LL | 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}`
2626...
2727LL | 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>`
2929 |
3030note: 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
3232 |
3333LL | let v = vec!['a'];
3434 | - has type `Vec<char>` which does not implement `Copy`
3535LL | yield;
3636 | ^^^^^ yield occurs here, with `v` maybe used later
3737note: required by a bound in `check_copy`
38- --> $DIR/clone-impl.rs:89 :18
38+ --> $DIR/clone-impl.rs:90 :18
3939 |
4040LL | fn check_copy<T: Copy>(_x: &T) {}
4141 | ^^^^ required by this bound in `check_copy`
4242
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
4545 |
4646LL | 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}`
4848...
4949LL | 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>`
5151 |
5252note: captured value does not implement `Copy`
53- --> $DIR/clone-impl.rs:68 :14
53+ --> $DIR/clone-impl.rs:69 :14
5454 |
5555LL | drop(clonable_1);
5656 | ^^^^^^^^^^ has type `Vec<u32>` which does not implement `Copy`
5757note: required by a bound in `check_copy`
58- --> $DIR/clone-impl.rs:89 :18
58+ --> $DIR/clone-impl.rs:90 :18
5959 |
6060LL | fn check_copy<T: Copy>(_x: &T) {}
6161 | ^^^^ required by this bound in `check_copy`
6262
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
6565 |
6666LL | 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}`
6868...
6969LL | 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>`
7171 |
7272note: 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
7474 |
7575LL | let v = vec!['a'];
7676 | - has type `Vec<char>` which does not implement `Copy`
7777...
7878LL | yield;
7979 | ^^^^^ yield occurs here, with `v` maybe used later
8080note: required by a bound in `check_copy`
81- --> $DIR/clone-impl.rs:89 :18
81+ --> $DIR/clone-impl.rs:90 :18
8282 |
8383LL | fn check_copy<T: Copy>(_x: &T) {}
8484 | ^^^^ required by this bound in `check_copy`
8585
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
8888 |
8989LL | 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}`
9191...
9292LL | 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`
9494 |
9595note: captured value does not implement `Copy`
96- --> $DIR/clone-impl.rs:81 :14
96+ --> $DIR/clone-impl.rs:82 :14
9797 |
9898LL | drop(non_clonable);
9999 | ^^^^^^^^^^^^ has type `NonClone` which does not implement `Copy`
100100note: required by a bound in `check_copy`
101- --> $DIR/clone-impl.rs:89 :18
101+ --> $DIR/clone-impl.rs:90 :18
102102 |
103103LL | fn check_copy<T: Copy>(_x: &T) {}
104104 | ^^^^ required by this bound in `check_copy`
@@ -108,22 +108,22 @@ LL + #[derive(Copy)]
108108LL | struct NonClone;
109109 |
110110
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
113113 |
114114LL | 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}`
116116...
117117LL | 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`
119119 |
120120note: captured value does not implement `Clone`
121- --> $DIR/clone-impl.rs:81 :14
121+ --> $DIR/clone-impl.rs:82 :14
122122 |
123123LL | drop(non_clonable);
124124 | ^^^^^^^^^^^^ has type `NonClone` which does not implement `Clone`
125125note: required by a bound in `check_clone`
126- --> $DIR/clone-impl.rs:90 :19
126+ --> $DIR/clone-impl.rs:91 :19
127127 |
128128LL | fn check_clone<T: Clone>(_x: &T) {}
129129 | ^^^^^ required by this bound in `check_clone`
0 commit comments