]> git.proxmox.com Git - rustc.git/blame - src/test/ui/binop/binop-consume-args.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / binop / binop-consume-args.stderr
CommitLineData
b7449926 1error[E0382]: use of moved value: `lhs`
0731742a 2 --> $DIR/binop-consume-args.rs:7:10
b7449926 3 |
48663c56 4LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 5 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 6 | |
60c5eb7d 7 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
8LL | lhs + rhs;
9 | --- value moved here
532ac7d7 10LL | drop(lhs);
b7449926 11 | ^^^ value used here after move
b7449926
XL
12
13error[E0382]: use of moved value: `rhs`
0731742a 14 --> $DIR/binop-consume-args.rs:8:10
b7449926 15 |
48663c56
XL
16LL | fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
17 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
18 | |
60c5eb7d 19 | help: consider restricting this bound: `B: Copy`
b7449926
XL
20LL | lhs + rhs;
21 | --- value moved here
532ac7d7
XL
22LL | drop(lhs);
23LL | drop(rhs);
b7449926 24 | ^^^ value used here after move
b7449926
XL
25
26error[E0382]: use of moved value: `lhs`
0731742a 27 --> $DIR/binop-consume-args.rs:13:10
b7449926 28 |
48663c56 29LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 30 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 31 | |
60c5eb7d 32 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
33LL | lhs - rhs;
34 | --- value moved here
532ac7d7 35LL | drop(lhs);
b7449926 36 | ^^^ value used here after move
b7449926
XL
37
38error[E0382]: use of moved value: `rhs`
0731742a 39 --> $DIR/binop-consume-args.rs:14:10
b7449926 40 |
48663c56
XL
41LL | fn sub<A: Sub<B, Output=()>, B>(lhs: A, rhs: B) {
42 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
43 | |
60c5eb7d 44 | help: consider restricting this bound: `B: Copy`
b7449926
XL
45LL | lhs - rhs;
46 | --- value moved here
532ac7d7
XL
47LL | drop(lhs);
48LL | drop(rhs);
b7449926 49 | ^^^ value used here after move
b7449926
XL
50
51error[E0382]: use of moved value: `lhs`
0731742a 52 --> $DIR/binop-consume-args.rs:19:10
b7449926 53 |
48663c56 54LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 55 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 56 | |
60c5eb7d 57 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
58LL | lhs * rhs;
59 | --- value moved here
532ac7d7 60LL | drop(lhs);
b7449926 61 | ^^^ value used here after move
b7449926
XL
62
63error[E0382]: use of moved value: `rhs`
0731742a 64 --> $DIR/binop-consume-args.rs:20:10
b7449926 65 |
48663c56
XL
66LL | fn mul<A: Mul<B, Output=()>, B>(lhs: A, rhs: B) {
67 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
68 | |
60c5eb7d 69 | help: consider restricting this bound: `B: Copy`
b7449926
XL
70LL | lhs * rhs;
71 | --- value moved here
532ac7d7
XL
72LL | drop(lhs);
73LL | drop(rhs);
b7449926 74 | ^^^ value used here after move
b7449926
XL
75
76error[E0382]: use of moved value: `lhs`
0731742a 77 --> $DIR/binop-consume-args.rs:25:10
b7449926 78 |
48663c56 79LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 80 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 81 | |
60c5eb7d 82 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
83LL | lhs / rhs;
84 | --- value moved here
532ac7d7 85LL | drop(lhs);
b7449926 86 | ^^^ value used here after move
b7449926
XL
87
88error[E0382]: use of moved value: `rhs`
0731742a 89 --> $DIR/binop-consume-args.rs:26:10
b7449926 90 |
48663c56
XL
91LL | fn div<A: Div<B, Output=()>, B>(lhs: A, rhs: B) {
92 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
93 | |
60c5eb7d 94 | help: consider restricting this bound: `B: Copy`
b7449926
XL
95LL | lhs / rhs;
96 | --- value moved here
532ac7d7
XL
97LL | drop(lhs);
98LL | drop(rhs);
b7449926 99 | ^^^ value used here after move
b7449926
XL
100
101error[E0382]: use of moved value: `lhs`
0731742a 102 --> $DIR/binop-consume-args.rs:31:10
b7449926 103 |
48663c56 104LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 105 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 106 | |
60c5eb7d 107 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
108LL | lhs % rhs;
109 | --- value moved here
532ac7d7 110LL | drop(lhs);
b7449926 111 | ^^^ value used here after move
b7449926
XL
112
113error[E0382]: use of moved value: `rhs`
0731742a 114 --> $DIR/binop-consume-args.rs:32:10
b7449926 115 |
48663c56
XL
116LL | fn rem<A: Rem<B, Output=()>, B>(lhs: A, rhs: B) {
117 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
118 | |
60c5eb7d 119 | help: consider restricting this bound: `B: Copy`
b7449926
XL
120LL | lhs % rhs;
121 | --- value moved here
532ac7d7
XL
122LL | drop(lhs);
123LL | drop(rhs);
b7449926 124 | ^^^ value used here after move
b7449926
XL
125
126error[E0382]: use of moved value: `lhs`
0731742a 127 --> $DIR/binop-consume-args.rs:37:10
b7449926 128 |
48663c56 129LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 130 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 131 | |
60c5eb7d 132 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
133LL | lhs & rhs;
134 | --- value moved here
532ac7d7 135LL | drop(lhs);
b7449926 136 | ^^^ value used here after move
b7449926
XL
137
138error[E0382]: use of moved value: `rhs`
0731742a 139 --> $DIR/binop-consume-args.rs:38:10
b7449926 140 |
48663c56
XL
141LL | fn bitand<A: BitAnd<B, Output=()>, B>(lhs: A, rhs: B) {
142 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
143 | |
60c5eb7d 144 | help: consider restricting this bound: `B: Copy`
b7449926
XL
145LL | lhs & rhs;
146 | --- value moved here
532ac7d7
XL
147LL | drop(lhs);
148LL | drop(rhs);
b7449926 149 | ^^^ value used here after move
b7449926
XL
150
151error[E0382]: use of moved value: `lhs`
0731742a 152 --> $DIR/binop-consume-args.rs:43:10
b7449926 153 |
48663c56 154LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 155 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 156 | |
60c5eb7d 157 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
158LL | lhs | rhs;
159 | --- value moved here
532ac7d7 160LL | drop(lhs);
b7449926 161 | ^^^ value used here after move
b7449926
XL
162
163error[E0382]: use of moved value: `rhs`
0731742a 164 --> $DIR/binop-consume-args.rs:44:10
b7449926 165 |
48663c56
XL
166LL | fn bitor<A: BitOr<B, Output=()>, B>(lhs: A, rhs: B) {
167 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
168 | |
60c5eb7d 169 | help: consider restricting this bound: `B: Copy`
b7449926
XL
170LL | lhs | rhs;
171 | --- value moved here
532ac7d7
XL
172LL | drop(lhs);
173LL | drop(rhs);
b7449926 174 | ^^^ value used here after move
b7449926
XL
175
176error[E0382]: use of moved value: `lhs`
0731742a 177 --> $DIR/binop-consume-args.rs:49:10
b7449926 178 |
48663c56 179LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 180 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 181 | |
60c5eb7d 182 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
183LL | lhs ^ rhs;
184 | --- value moved here
532ac7d7 185LL | drop(lhs);
b7449926 186 | ^^^ value used here after move
b7449926
XL
187
188error[E0382]: use of moved value: `rhs`
0731742a 189 --> $DIR/binop-consume-args.rs:50:10
b7449926 190 |
48663c56
XL
191LL | fn bitxor<A: BitXor<B, Output=()>, B>(lhs: A, rhs: B) {
192 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
193 | |
60c5eb7d 194 | help: consider restricting this bound: `B: Copy`
b7449926
XL
195LL | lhs ^ rhs;
196 | --- value moved here
532ac7d7
XL
197LL | drop(lhs);
198LL | drop(rhs);
b7449926 199 | ^^^ value used here after move
b7449926
XL
200
201error[E0382]: use of moved value: `lhs`
0731742a 202 --> $DIR/binop-consume-args.rs:55:10
b7449926 203 |
48663c56 204LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 205 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 206 | |
60c5eb7d 207 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
208LL | lhs << rhs;
209 | --- value moved here
532ac7d7 210LL | drop(lhs);
b7449926 211 | ^^^ value used here after move
b7449926
XL
212
213error[E0382]: use of moved value: `rhs`
0731742a 214 --> $DIR/binop-consume-args.rs:56:10
b7449926 215 |
48663c56
XL
216LL | fn shl<A: Shl<B, Output=()>, B>(lhs: A, rhs: B) {
217 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
218 | |
60c5eb7d 219 | help: consider restricting this bound: `B: Copy`
b7449926
XL
220LL | lhs << rhs;
221 | --- value moved here
532ac7d7
XL
222LL | drop(lhs);
223LL | drop(rhs);
b7449926 224 | ^^^ value used here after move
b7449926
XL
225
226error[E0382]: use of moved value: `lhs`
0731742a 227 --> $DIR/binop-consume-args.rs:61:10
b7449926 228 |
48663c56 229LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
60c5eb7d 230 | -- --- move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
48663c56 231 | |
60c5eb7d 232 | help: consider further restricting this bound: `A: Copy +`
b7449926
XL
233LL | lhs >> rhs;
234 | --- value moved here
532ac7d7 235LL | drop(lhs);
b7449926 236 | ^^^ value used here after move
b7449926
XL
237
238error[E0382]: use of moved value: `rhs`
0731742a 239 --> $DIR/binop-consume-args.rs:62:10
b7449926 240 |
48663c56
XL
241LL | fn shr<A: Shr<B, Output=()>, B>(lhs: A, rhs: B) {
242 | - --- move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
243 | |
60c5eb7d 244 | help: consider restricting this bound: `B: Copy`
b7449926
XL
245LL | lhs >> rhs;
246 | --- value moved here
532ac7d7
XL
247LL | drop(lhs);
248LL | drop(rhs);
b7449926 249 | ^^^ value used here after move
b7449926
XL
250
251error: aborting due to 20 previous errors
252
253For more information about this error, try `rustc --explain E0382`.