]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-8460-const.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-8460-const.stderr
1 error: attempt to divide with overflow
2   --> $DIR/issue-8460-const.rs:7:36
3    |
4 LL |     assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
5    |                                    ^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/issue-8460-const.rs:1:9
9    |
10 LL | #![deny(const_err)]
11    |         ^^^^^^^^^
12
13 error: this expression will panic at runtime
14   --> $DIR/issue-8460-const.rs:7:36
15    |
16 LL |     assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
17    |                                    ^^^^^^^^^^^^^^^ attempt to divide with overflow
18
19 error: attempt to divide with overflow
20   --> $DIR/issue-8460-const.rs:10:36
21    |
22 LL |     assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
23    |                                    ^^^^^^^^^^^^
24
25 error: this expression will panic at runtime
26   --> $DIR/issue-8460-const.rs:10:36
27    |
28 LL |     assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
29    |                                    ^^^^^^^^^^^^ attempt to divide with overflow
30
31 error: attempt to divide with overflow
32   --> $DIR/issue-8460-const.rs:13:36
33    |
34 LL |     assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
35    |                                    ^^^^^^^^^^^^^
36
37 error: this expression will panic at runtime
38   --> $DIR/issue-8460-const.rs:13:36
39    |
40 LL |     assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
41    |                                    ^^^^^^^^^^^^^ attempt to divide with overflow
42
43 error: attempt to divide with overflow
44   --> $DIR/issue-8460-const.rs:16:36
45    |
46 LL |     assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
47    |                                    ^^^^^^^^^^^^^
48
49 error: this expression will panic at runtime
50   --> $DIR/issue-8460-const.rs:16:36
51    |
52 LL |     assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
53    |                                    ^^^^^^^^^^^^^ attempt to divide with overflow
54
55 error: attempt to divide with overflow
56   --> $DIR/issue-8460-const.rs:19:36
57    |
58 LL |     assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
59    |                                    ^^^^^^^^^^^^^
60
61 error: this expression will panic at runtime
62   --> $DIR/issue-8460-const.rs:19:36
63    |
64 LL |     assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
65    |                                    ^^^^^^^^^^^^^ attempt to divide with overflow
66
67 error: attempt to divide by zero
68   --> $DIR/issue-8460-const.rs:22:36
69    |
70 LL |     assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
71    |                                    ^^^^^^^^^^
72
73 error: this expression will panic at runtime
74   --> $DIR/issue-8460-const.rs:22:36
75    |
76 LL |     assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
77    |                                    ^^^^^^^^^^ attempt to divide by zero
78
79 error: attempt to divide by zero
80   --> $DIR/issue-8460-const.rs:25:36
81    |
82 LL |     assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
83    |                                    ^^^^^^^
84
85 error: this expression will panic at runtime
86   --> $DIR/issue-8460-const.rs:25:36
87    |
88 LL |     assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
89    |                                    ^^^^^^^ attempt to divide by zero
90
91 error: attempt to divide by zero
92   --> $DIR/issue-8460-const.rs:28:36
93    |
94 LL |     assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
95    |                                    ^^^^^^^^
96
97 error: this expression will panic at runtime
98   --> $DIR/issue-8460-const.rs:28:36
99    |
100 LL |     assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
101    |                                    ^^^^^^^^ attempt to divide by zero
102
103 error: attempt to divide by zero
104   --> $DIR/issue-8460-const.rs:31:36
105    |
106 LL |     assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
107    |                                    ^^^^^^^^
108
109 error: this expression will panic at runtime
110   --> $DIR/issue-8460-const.rs:31:36
111    |
112 LL |     assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
113    |                                    ^^^^^^^^ attempt to divide by zero
114
115 error: attempt to divide by zero
116   --> $DIR/issue-8460-const.rs:34:36
117    |
118 LL |     assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
119    |                                    ^^^^^^^^
120
121 error: this expression will panic at runtime
122   --> $DIR/issue-8460-const.rs:34:36
123    |
124 LL |     assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
125    |                                    ^^^^^^^^ attempt to divide by zero
126
127 error: attempt to calculate the remainder with overflow
128   --> $DIR/issue-8460-const.rs:37:36
129    |
130 LL |     assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
131    |                                    ^^^^^^^^^^^^^^^
132
133 error: this expression will panic at runtime
134   --> $DIR/issue-8460-const.rs:37:36
135    |
136 LL |     assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
137    |                                    ^^^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
138
139 error: attempt to calculate the remainder with overflow
140   --> $DIR/issue-8460-const.rs:40:36
141    |
142 LL |     assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
143    |                                    ^^^^^^^^^^^^
144
145 error: this expression will panic at runtime
146   --> $DIR/issue-8460-const.rs:40:36
147    |
148 LL |     assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
149    |                                    ^^^^^^^^^^^^ attempt to calculate the remainder with overflow
150
151 error: attempt to calculate the remainder with overflow
152   --> $DIR/issue-8460-const.rs:43:36
153    |
154 LL |     assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
155    |                                    ^^^^^^^^^^^^^
156
157 error: this expression will panic at runtime
158   --> $DIR/issue-8460-const.rs:43:36
159    |
160 LL |     assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
161    |                                    ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
162
163 error: attempt to calculate the remainder with overflow
164   --> $DIR/issue-8460-const.rs:46:36
165    |
166 LL |     assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
167    |                                    ^^^^^^^^^^^^^
168
169 error: this expression will panic at runtime
170   --> $DIR/issue-8460-const.rs:46:36
171    |
172 LL |     assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
173    |                                    ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
174
175 error: attempt to calculate the remainder with overflow
176   --> $DIR/issue-8460-const.rs:49:36
177    |
178 LL |     assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
179    |                                    ^^^^^^^^^^^^^
180
181 error: this expression will panic at runtime
182   --> $DIR/issue-8460-const.rs:49:36
183    |
184 LL |     assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
185    |                                    ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
186
187 error: attempt to calculate the remainder with a divisor of zero
188   --> $DIR/issue-8460-const.rs:52:36
189    |
190 LL |     assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
191    |                                    ^^^^^^^^^^
192
193 error: this expression will panic at runtime
194   --> $DIR/issue-8460-const.rs:52:36
195    |
196 LL |     assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
197    |                                    ^^^^^^^^^^ attempt to calculate the remainder with a divisor of zero
198
199 error: attempt to calculate the remainder with a divisor of zero
200   --> $DIR/issue-8460-const.rs:55:36
201    |
202 LL |     assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
203    |                                    ^^^^^^^
204
205 error: this expression will panic at runtime
206   --> $DIR/issue-8460-const.rs:55:36
207    |
208 LL |     assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
209    |                                    ^^^^^^^ attempt to calculate the remainder with a divisor of zero
210
211 error: attempt to calculate the remainder with a divisor of zero
212   --> $DIR/issue-8460-const.rs:58:36
213    |
214 LL |     assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
215    |                                    ^^^^^^^^
216
217 error: this expression will panic at runtime
218   --> $DIR/issue-8460-const.rs:58:36
219    |
220 LL |     assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
221    |                                    ^^^^^^^^ attempt to calculate the remainder with a divisor of zero
222
223 error: attempt to calculate the remainder with a divisor of zero
224   --> $DIR/issue-8460-const.rs:61:36
225    |
226 LL |     assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
227    |                                    ^^^^^^^^
228
229 error: this expression will panic at runtime
230   --> $DIR/issue-8460-const.rs:61:36
231    |
232 LL |     assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
233    |                                    ^^^^^^^^ attempt to calculate the remainder with a divisor of zero
234
235 error: attempt to calculate the remainder with a divisor of zero
236   --> $DIR/issue-8460-const.rs:64:36
237    |
238 LL |     assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
239    |                                    ^^^^^^^^
240
241 error: this expression will panic at runtime
242   --> $DIR/issue-8460-const.rs:64:36
243    |
244 LL |     assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
245    |                                    ^^^^^^^^ attempt to calculate the remainder with a divisor of zero
246
247 error: aborting due to 40 previous errors
248