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
4 LL | let gen_clone_0 = move || {
5 | ------- within this `[generator@$DIR/clone-impl.rs:36:23: 36:30]`
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>`
10 note: captured value does not implement `Copy`
11 --> $DIR/clone-impl.rs:40:14
13 LL | drop(clonable_0);
14 | ^^^^^^^^^^ has type `Vec<u32>` which does not implement `Copy`
15 note: required by a bound in `check_copy`
16 --> $DIR/clone-impl.rs:72:18
18 LL | fn check_copy<T: Copy>(_x: &T) {}
19 | ^^^^ required by this bound in `check_copy`
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
24 LL | let gen_clone_0 = move || {
25 | ------- within this `[generator@$DIR/clone-impl.rs:36:23: 36:30]`
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>`
30 note: generator does not implement `Copy` as this value is used across a yield
31 --> $DIR/clone-impl.rs:38:9
33 LL | let v = vec!['a'];
34 | - has type `Vec<char>` which does not implement `Copy`
36 | ^^^^^ yield occurs here, with `v` maybe used later
39 | - `v` is later dropped here
40 note: required by a bound in `check_copy`
41 --> $DIR/clone-impl.rs:72:18
43 LL | fn check_copy<T: Copy>(_x: &T) {}
44 | ^^^^ required by this bound in `check_copy`
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
49 LL | let gen_clone_1 = move || {
50 | ------- within this `[generator@$DIR/clone-impl.rs:46:23: 46:30]`
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>`
55 note: captured value does not implement `Copy`
56 --> $DIR/clone-impl.rs:56:14
58 LL | drop(clonable_1);
59 | ^^^^^^^^^^ has type `Vec<u32>` which does not implement `Copy`
60 note: required by a bound in `check_copy`
61 --> $DIR/clone-impl.rs:72:18
63 LL | fn check_copy<T: Copy>(_x: &T) {}
64 | ^^^^ required by this bound in `check_copy`
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
69 LL | let gen_clone_1 = move || {
70 | ------- within this `[generator@$DIR/clone-impl.rs:46:23: 46:30]`
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>`
75 note: generator does not implement `Copy` as this value is used across a yield
76 --> $DIR/clone-impl.rs:52:9
78 LL | let v = vec!['a'];
79 | - has type `Vec<char>` which does not implement `Copy`
82 | ^^^^^ yield occurs here, with `v` maybe used later
85 | - `v` is later dropped here
86 note: required by a bound in `check_copy`
87 --> $DIR/clone-impl.rs:72:18
89 LL | fn check_copy<T: Copy>(_x: &T) {}
90 | ^^^^ required by this bound in `check_copy`
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
95 LL | let gen_non_clone = move || {
96 | ------- within this `[generator@$DIR/clone-impl.rs:62:25: 62:32]`
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`
101 note: captured value does not implement `Copy`
102 --> $DIR/clone-impl.rs:64:14
104 LL | drop(non_clonable);
105 | ^^^^^^^^^^^^ has type `NonClone` which does not implement `Copy`
106 note: required by a bound in `check_copy`
107 --> $DIR/clone-impl.rs:72:18
109 LL | fn check_copy<T: Copy>(_x: &T) {}
110 | ^^^^ required by this bound in `check_copy`
111 help: consider annotating `NonClone` with `#[derive(Copy)]`
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
119 LL | let gen_non_clone = move || {
120 | ------- within this `[generator@$DIR/clone-impl.rs:62:25: 62:32]`
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`
125 note: captured value does not implement `Clone`
126 --> $DIR/clone-impl.rs:64:14
128 LL | drop(non_clonable);
129 | ^^^^^^^^^^^^ has type `NonClone` which does not implement `Clone`
130 note: required by a bound in `check_clone`
131 --> $DIR/clone-impl.rs:73:19
133 LL | fn check_clone<T: Clone>(_x: &T) {}
134 | ^^^^^ required by this bound in `check_clone`
135 help: consider annotating `NonClone` with `#[derive(Clone)]`
137 LL | #[derive(Clone)]
140 error: aborting due to 6 previous errors
142 For more information about this error, try `rustc --explain E0277`.