]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binop/binop-consume-args.stderr
Rollup merge of #58949 - jethrogb:jb/sgx-thread-id, r=joshtriplett
[rust.git] / src / test / ui / binop / binop-consume-args.stderr
1 error[E0382]: use of moved value: `lhs`
2   --> $DIR/binop-consume-args.rs:7:10
3    |
4 LL |     lhs + rhs;
5    |     --- value moved here
6 LL |     drop(lhs);
7    |          ^^^ value used here after move
8    |
9    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
10
11 error[E0382]: use of moved value: `rhs`
12   --> $DIR/binop-consume-args.rs:8:10
13    |
14 LL |     lhs + rhs;
15    |           --- value moved here
16 LL |     drop(lhs);
17 LL |     drop(rhs);
18    |          ^^^ value used here after move
19    |
20    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
21
22 error[E0382]: use of moved value: `lhs`
23   --> $DIR/binop-consume-args.rs:13:10
24    |
25 LL |     lhs - rhs;
26    |     --- value moved here
27 LL |     drop(lhs);
28    |          ^^^ value used here after move
29    |
30    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
31
32 error[E0382]: use of moved value: `rhs`
33   --> $DIR/binop-consume-args.rs:14:10
34    |
35 LL |     lhs - rhs;
36    |           --- value moved here
37 LL |     drop(lhs);
38 LL |     drop(rhs);
39    |          ^^^ value used here after move
40    |
41    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
42
43 error[E0382]: use of moved value: `lhs`
44   --> $DIR/binop-consume-args.rs:19:10
45    |
46 LL |     lhs * rhs;
47    |     --- value moved here
48 LL |     drop(lhs);
49    |          ^^^ value used here after move
50    |
51    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
52
53 error[E0382]: use of moved value: `rhs`
54   --> $DIR/binop-consume-args.rs:20:10
55    |
56 LL |     lhs * rhs;
57    |           --- value moved here
58 LL |     drop(lhs);
59 LL |     drop(rhs);
60    |          ^^^ value used here after move
61    |
62    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
63
64 error[E0382]: use of moved value: `lhs`
65   --> $DIR/binop-consume-args.rs:25:10
66    |
67 LL |     lhs / rhs;
68    |     --- value moved here
69 LL |     drop(lhs);
70    |          ^^^ value used here after move
71    |
72    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
73
74 error[E0382]: use of moved value: `rhs`
75   --> $DIR/binop-consume-args.rs:26:10
76    |
77 LL |     lhs / rhs;
78    |           --- value moved here
79 LL |     drop(lhs);
80 LL |     drop(rhs);
81    |          ^^^ value used here after move
82    |
83    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
84
85 error[E0382]: use of moved value: `lhs`
86   --> $DIR/binop-consume-args.rs:31:10
87    |
88 LL |     lhs % rhs;
89    |     --- value moved here
90 LL |     drop(lhs);
91    |          ^^^ value used here after move
92    |
93    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
94
95 error[E0382]: use of moved value: `rhs`
96   --> $DIR/binop-consume-args.rs:32:10
97    |
98 LL |     lhs % rhs;
99    |           --- value moved here
100 LL |     drop(lhs);
101 LL |     drop(rhs);
102    |          ^^^ value used here after move
103    |
104    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
105
106 error[E0382]: use of moved value: `lhs`
107   --> $DIR/binop-consume-args.rs:37:10
108    |
109 LL |     lhs & rhs;
110    |     --- value moved here
111 LL |     drop(lhs);
112    |          ^^^ value used here after move
113    |
114    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
115
116 error[E0382]: use of moved value: `rhs`
117   --> $DIR/binop-consume-args.rs:38:10
118    |
119 LL |     lhs & rhs;
120    |           --- value moved here
121 LL |     drop(lhs);
122 LL |     drop(rhs);
123    |          ^^^ value used here after move
124    |
125    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
126
127 error[E0382]: use of moved value: `lhs`
128   --> $DIR/binop-consume-args.rs:43:10
129    |
130 LL |     lhs | rhs;
131    |     --- value moved here
132 LL |     drop(lhs);
133    |          ^^^ value used here after move
134    |
135    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
136
137 error[E0382]: use of moved value: `rhs`
138   --> $DIR/binop-consume-args.rs:44:10
139    |
140 LL |     lhs | rhs;
141    |           --- value moved here
142 LL |     drop(lhs);
143 LL |     drop(rhs);
144    |          ^^^ value used here after move
145    |
146    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
147
148 error[E0382]: use of moved value: `lhs`
149   --> $DIR/binop-consume-args.rs:49:10
150    |
151 LL |     lhs ^ rhs;
152    |     --- value moved here
153 LL |     drop(lhs);
154    |          ^^^ value used here after move
155    |
156    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
157
158 error[E0382]: use of moved value: `rhs`
159   --> $DIR/binop-consume-args.rs:50:10
160    |
161 LL |     lhs ^ rhs;
162    |           --- value moved here
163 LL |     drop(lhs);
164 LL |     drop(rhs);
165    |          ^^^ value used here after move
166    |
167    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
168
169 error[E0382]: use of moved value: `lhs`
170   --> $DIR/binop-consume-args.rs:55:10
171    |
172 LL |     lhs << rhs;
173    |     --- value moved here
174 LL |     drop(lhs);
175    |          ^^^ value used here after move
176    |
177    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
178
179 error[E0382]: use of moved value: `rhs`
180   --> $DIR/binop-consume-args.rs:56:10
181    |
182 LL |     lhs << rhs;
183    |            --- value moved here
184 LL |     drop(lhs);
185 LL |     drop(rhs);
186    |          ^^^ value used here after move
187    |
188    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
189
190 error[E0382]: use of moved value: `lhs`
191   --> $DIR/binop-consume-args.rs:61:10
192    |
193 LL |     lhs >> rhs;
194    |     --- value moved here
195 LL |     drop(lhs);
196    |          ^^^ value used here after move
197    |
198    = note: move occurs because `lhs` has type `A`, which does not implement the `Copy` trait
199
200 error[E0382]: use of moved value: `rhs`
201   --> $DIR/binop-consume-args.rs:62:10
202    |
203 LL |     lhs >> rhs;
204    |            --- value moved here
205 LL |     drop(lhs);
206 LL |     drop(rhs);
207    |          ^^^ value used here after move
208    |
209    = note: move occurs because `rhs` has type `B`, which does not implement the `Copy` trait
210
211 error: aborting due to 20 previous errors
212
213 For more information about this error, try `rustc --explain E0382`.