1 error[E0277]: the trait bound `[async block@$DIR/clone-impl-async.rs:12:27: 16:6]: Copy` is not satisfied
2 --> $DIR/clone-impl-async.rs:17:16
4 LL | check_copy(&inner_non_clone);
5 | ---------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `[async block@$DIR/clone-impl-async.rs:12:27: 16:6]`
7 | required by a bound introduced by this call
9 note: required by a bound in `check_copy`
10 --> $DIR/clone-impl-async.rs:69:18
12 LL | fn check_copy<T: Copy>(_x: &T) {}
13 | ^^^^ required by this bound in `check_copy`
15 error[E0277]: the trait bound `[async block@$DIR/clone-impl-async.rs:12:27: 16:6]: Clone` is not satisfied
16 --> $DIR/clone-impl-async.rs:19:17
18 LL | check_clone(&inner_non_clone);
19 | ----------- ^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `[async block@$DIR/clone-impl-async.rs:12:27: 16:6]`
21 | required by a bound introduced by this call
23 note: required by a bound in `check_clone`
24 --> $DIR/clone-impl-async.rs:70:19
26 LL | fn check_clone<T: Clone>(_x: &T) {}
27 | ^^^^^ required by this bound in `check_clone`
29 error[E0277]: the trait bound `[async block@$DIR/clone-impl-async.rs:23:27: 25:6]: Copy` is not satisfied
30 --> $DIR/clone-impl-async.rs:26:16
32 LL | check_copy(&outer_non_clone);
33 | ---------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `[async block@$DIR/clone-impl-async.rs:23:27: 25:6]`
35 | required by a bound introduced by this call
37 note: required by a bound in `check_copy`
38 --> $DIR/clone-impl-async.rs:69:18
40 LL | fn check_copy<T: Copy>(_x: &T) {}
41 | ^^^^ required by this bound in `check_copy`
43 error[E0277]: the trait bound `[async block@$DIR/clone-impl-async.rs:23:27: 25:6]: Clone` is not satisfied
44 --> $DIR/clone-impl-async.rs:28:17
46 LL | check_clone(&outer_non_clone);
47 | ----------- ^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `[async block@$DIR/clone-impl-async.rs:23:27: 25:6]`
49 | required by a bound introduced by this call
51 note: required by a bound in `check_clone`
52 --> $DIR/clone-impl-async.rs:70:19
54 LL | fn check_clone<T: Clone>(_x: &T) {}
55 | ^^^^^ required by this bound in `check_clone`
57 error[E0277]: the trait bound `[async block@$DIR/clone-impl-async.rs:31:28: 31:41]: Copy` is not satisfied
58 --> $DIR/clone-impl-async.rs:32:16
60 LL | check_copy(&maybe_copy_clone);
61 | ---------- ^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `[async block@$DIR/clone-impl-async.rs:31:28: 31:41]`
63 | required by a bound introduced by this call
65 note: required by a bound in `check_copy`
66 --> $DIR/clone-impl-async.rs:69:18
68 LL | fn check_copy<T: Copy>(_x: &T) {}
69 | ^^^^ required by this bound in `check_copy`
71 error[E0277]: the trait bound `[async block@$DIR/clone-impl-async.rs:31:28: 31:41]: Clone` is not satisfied
72 --> $DIR/clone-impl-async.rs:34:17
74 LL | check_clone(&maybe_copy_clone);
75 | ----------- ^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `[async block@$DIR/clone-impl-async.rs:31:28: 31:41]`
77 | required by a bound introduced by this call
79 note: required by a bound in `check_clone`
80 --> $DIR/clone-impl-async.rs:70:19
82 LL | fn check_clone<T: Clone>(_x: &T) {}
83 | ^^^^^ required by this bound in `check_clone`
85 error[E0277]: the trait bound `impl Future<Output = ()>: Copy` is not satisfied
86 --> $DIR/clone-impl-async.rs:38:16
88 LL | check_copy(&inner_non_clone_fn);
89 | ---------- ^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = ()>`
91 | required by a bound introduced by this call
93 note: required by a bound in `check_copy`
94 --> $DIR/clone-impl-async.rs:69:18
96 LL | fn check_copy<T: Copy>(_x: &T) {}
97 | ^^^^ required by this bound in `check_copy`
99 error[E0277]: the trait bound `impl Future<Output = ()>: Clone` is not satisfied
100 --> $DIR/clone-impl-async.rs:40:17
102 LL | check_clone(&inner_non_clone_fn);
103 | ----------- ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = ()>`
105 | required by a bound introduced by this call
107 note: required by a bound in `check_clone`
108 --> $DIR/clone-impl-async.rs:70:19
110 LL | fn check_clone<T: Clone>(_x: &T) {}
111 | ^^^^^ required by this bound in `check_clone`
113 error[E0277]: the trait bound `impl Future<Output = ()>: Copy` is not satisfied
114 --> $DIR/clone-impl-async.rs:44:16
116 LL | check_copy(&outer_non_clone_fn);
117 | ---------- ^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = ()>`
119 | required by a bound introduced by this call
121 note: required by a bound in `check_copy`
122 --> $DIR/clone-impl-async.rs:69:18
124 LL | fn check_copy<T: Copy>(_x: &T) {}
125 | ^^^^ required by this bound in `check_copy`
127 error[E0277]: the trait bound `impl Future<Output = ()>: Clone` is not satisfied
128 --> $DIR/clone-impl-async.rs:46:17
130 LL | check_clone(&outer_non_clone_fn);
131 | ----------- ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = ()>`
133 | required by a bound introduced by this call
135 note: required by a bound in `check_clone`
136 --> $DIR/clone-impl-async.rs:70:19
138 LL | fn check_clone<T: Clone>(_x: &T) {}
139 | ^^^^^ required by this bound in `check_clone`
141 error[E0277]: the trait bound `impl Future<Output = ()>: Copy` is not satisfied
142 --> $DIR/clone-impl-async.rs:50:16
144 LL | check_copy(&maybe_copy_clone_fn);
145 | ---------- ^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = ()>`
147 | required by a bound introduced by this call
149 note: required by a bound in `check_copy`
150 --> $DIR/clone-impl-async.rs:69:18
152 LL | fn check_copy<T: Copy>(_x: &T) {}
153 | ^^^^ required by this bound in `check_copy`
155 error[E0277]: the trait bound `impl Future<Output = ()>: Clone` is not satisfied
156 --> $DIR/clone-impl-async.rs:52:17
158 LL | check_clone(&maybe_copy_clone_fn);
159 | ----------- ^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = ()>`
161 | required by a bound introduced by this call
163 note: required by a bound in `check_clone`
164 --> $DIR/clone-impl-async.rs:70:19
166 LL | fn check_clone<T: Clone>(_x: &T) {}
167 | ^^^^^ required by this bound in `check_clone`
169 error: aborting due to 12 previous errors
171 For more information about this error, try `rustc --explain E0277`.