fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
6.7 KiB171 linesraw
1error[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
3   |
4LL |     check_copy(&inner_non_clone);
5   |     ---------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `{async block@$DIR/clone-impl-async.rs:12:27: 16:6}`
6   |     |
7   |     required by a bound introduced by this call
8   |
9note: required by a bound in `check_copy`
10  --> $DIR/clone-impl-async.rs:69:18
11   |
12LL | fn check_copy<T: Copy>(_x: &T) {}
13   |                  ^^^^ required by this bound in `check_copy`
14
15error[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
17   |
18LL |     check_clone(&inner_non_clone);
19   |     ----------- ^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `{async block@$DIR/clone-impl-async.rs:12:27: 16:6}`
20   |     |
21   |     required by a bound introduced by this call
22   |
23note: required by a bound in `check_clone`
24  --> $DIR/clone-impl-async.rs:70:19
25   |
26LL | fn check_clone<T: Clone>(_x: &T) {}
27   |                   ^^^^^ required by this bound in `check_clone`
28
29error[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
31   |
32LL |     check_copy(&outer_non_clone);
33   |     ---------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `{async block@$DIR/clone-impl-async.rs:23:27: 25:6}`
34   |     |
35   |     required by a bound introduced by this call
36   |
37note: required by a bound in `check_copy`
38  --> $DIR/clone-impl-async.rs:69:18
39   |
40LL | fn check_copy<T: Copy>(_x: &T) {}
41   |                  ^^^^ required by this bound in `check_copy`
42
43error[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
45   |
46LL |     check_clone(&outer_non_clone);
47   |     ----------- ^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `{async block@$DIR/clone-impl-async.rs:23:27: 25:6}`
48   |     |
49   |     required by a bound introduced by this call
50   |
51note: required by a bound in `check_clone`
52  --> $DIR/clone-impl-async.rs:70:19
53   |
54LL | fn check_clone<T: Clone>(_x: &T) {}
55   |                   ^^^^^ required by this bound in `check_clone`
56
57error[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
59   |
60LL |     check_copy(&maybe_copy_clone);
61   |     ---------- ^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `{async block@$DIR/clone-impl-async.rs:31:28: 31:41}`
62   |     |
63   |     required by a bound introduced by this call
64   |
65note: required by a bound in `check_copy`
66  --> $DIR/clone-impl-async.rs:69:18
67   |
68LL | fn check_copy<T: Copy>(_x: &T) {}
69   |                  ^^^^ required by this bound in `check_copy`
70
71error[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
73   |
74LL |     check_clone(&maybe_copy_clone);
75   |     ----------- ^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `{async block@$DIR/clone-impl-async.rs:31:28: 31:41}`
76   |     |
77   |     required by a bound introduced by this call
78   |
79note: required by a bound in `check_clone`
80  --> $DIR/clone-impl-async.rs:70:19
81   |
82LL | fn check_clone<T: Clone>(_x: &T) {}
83   |                   ^^^^^ required by this bound in `check_clone`
84
85error[E0277]: the trait bound `impl Future<Output = ()>: Copy` is not satisfied
86  --> $DIR/clone-impl-async.rs:38:16
87   |
88LL |     check_copy(&inner_non_clone_fn);
89   |     ---------- ^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = ()>`
90   |     |
91   |     required by a bound introduced by this call
92   |
93note: required by a bound in `check_copy`
94  --> $DIR/clone-impl-async.rs:69:18
95   |
96LL | fn check_copy<T: Copy>(_x: &T) {}
97   |                  ^^^^ required by this bound in `check_copy`
98
99error[E0277]: the trait bound `impl Future<Output = ()>: Clone` is not satisfied
100  --> $DIR/clone-impl-async.rs:40:17
101   |
102LL |     check_clone(&inner_non_clone_fn);
103   |     ----------- ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = ()>`
104   |     |
105   |     required by a bound introduced by this call
106   |
107note: required by a bound in `check_clone`
108  --> $DIR/clone-impl-async.rs:70:19
109   |
110LL | fn check_clone<T: Clone>(_x: &T) {}
111   |                   ^^^^^ required by this bound in `check_clone`
112
113error[E0277]: the trait bound `impl Future<Output = ()>: Copy` is not satisfied
114  --> $DIR/clone-impl-async.rs:44:16
115   |
116LL |     check_copy(&outer_non_clone_fn);
117   |     ---------- ^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = ()>`
118   |     |
119   |     required by a bound introduced by this call
120   |
121note: required by a bound in `check_copy`
122  --> $DIR/clone-impl-async.rs:69:18
123   |
124LL | fn check_copy<T: Copy>(_x: &T) {}
125   |                  ^^^^ required by this bound in `check_copy`
126
127error[E0277]: the trait bound `impl Future<Output = ()>: Clone` is not satisfied
128  --> $DIR/clone-impl-async.rs:46:17
129   |
130LL |     check_clone(&outer_non_clone_fn);
131   |     ----------- ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = ()>`
132   |     |
133   |     required by a bound introduced by this call
134   |
135note: required by a bound in `check_clone`
136  --> $DIR/clone-impl-async.rs:70:19
137   |
138LL | fn check_clone<T: Clone>(_x: &T) {}
139   |                   ^^^^^ required by this bound in `check_clone`
140
141error[E0277]: the trait bound `impl Future<Output = ()>: Copy` is not satisfied
142  --> $DIR/clone-impl-async.rs:50:16
143   |
144LL |     check_copy(&maybe_copy_clone_fn);
145   |     ---------- ^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = ()>`
146   |     |
147   |     required by a bound introduced by this call
148   |
149note: required by a bound in `check_copy`
150  --> $DIR/clone-impl-async.rs:69:18
151   |
152LL | fn check_copy<T: Copy>(_x: &T) {}
153   |                  ^^^^ required by this bound in `check_copy`
154
155error[E0277]: the trait bound `impl Future<Output = ()>: Clone` is not satisfied
156  --> $DIR/clone-impl-async.rs:52:17
157   |
158LL |     check_clone(&maybe_copy_clone_fn);
159   |     ----------- ^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = ()>`
160   |     |
161   |     required by a bound introduced by this call
162   |
163note: required by a bound in `check_clone`
164  --> $DIR/clone-impl-async.rs:70:19
165   |
166LL | fn check_clone<T: Clone>(_x: &T) {}
167   |                   ^^^^^ required by this bound in `check_clone`
168
169error: aborting due to 12 previous errors
170
171For more information about this error, try `rustc --explain E0277`.