1 error: attempt to divide with overflow
2 --> $DIR/issue-8460-const.rs:9:36
4 LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
7 note: lint level defined here
8 --> $DIR/issue-8460-const.rs:3:9
10 LL | #![deny(const_err)]
13 error: this expression will panic at runtime
14 --> $DIR/issue-8460-const.rs:9:36
16 LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
17 | ^^^^^^^^^^^^^^^ attempt to divide with overflow
19 error: attempt to divide with overflow
20 --> $DIR/issue-8460-const.rs:12:36
22 LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
25 error: this expression will panic at runtime
26 --> $DIR/issue-8460-const.rs:12:36
28 LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
29 | ^^^^^^^^^^^^ attempt to divide with overflow
31 error: attempt to divide with overflow
32 --> $DIR/issue-8460-const.rs:15:36
34 LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
37 error: this expression will panic at runtime
38 --> $DIR/issue-8460-const.rs:15:36
40 LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
41 | ^^^^^^^^^^^^^ attempt to divide with overflow
43 error: attempt to divide with overflow
44 --> $DIR/issue-8460-const.rs:18:36
46 LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
49 error: this expression will panic at runtime
50 --> $DIR/issue-8460-const.rs:18:36
52 LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
53 | ^^^^^^^^^^^^^ attempt to divide with overflow
55 error: attempt to divide with overflow
56 --> $DIR/issue-8460-const.rs:21:36
58 LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
61 error: this expression will panic at runtime
62 --> $DIR/issue-8460-const.rs:21:36
64 LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
65 | ^^^^^^^^^^^^^ attempt to divide with overflow
67 error: attempt to divide by zero
68 --> $DIR/issue-8460-const.rs:24:36
70 LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
73 error: this expression will panic at runtime
74 --> $DIR/issue-8460-const.rs:24:36
76 LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
77 | ^^^^^^^^^^ attempt to divide by zero
79 error: attempt to divide by zero
80 --> $DIR/issue-8460-const.rs:27:36
82 LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
85 error: this expression will panic at runtime
86 --> $DIR/issue-8460-const.rs:27:36
88 LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
89 | ^^^^^^^ attempt to divide by zero
91 error: attempt to divide by zero
92 --> $DIR/issue-8460-const.rs:30:36
94 LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
97 error: this expression will panic at runtime
98 --> $DIR/issue-8460-const.rs:30:36
100 LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
101 | ^^^^^^^^ attempt to divide by zero
103 error: attempt to divide by zero
104 --> $DIR/issue-8460-const.rs:33:36
106 LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
109 error: this expression will panic at runtime
110 --> $DIR/issue-8460-const.rs:33:36
112 LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
113 | ^^^^^^^^ attempt to divide by zero
115 error: attempt to divide by zero
116 --> $DIR/issue-8460-const.rs:36:36
118 LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
121 error: this expression will panic at runtime
122 --> $DIR/issue-8460-const.rs:36:36
124 LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
125 | ^^^^^^^^ attempt to divide by zero
127 error: attempt to calculate the remainder with overflow
128 --> $DIR/issue-8460-const.rs:39:36
130 LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
133 error: this expression will panic at runtime
134 --> $DIR/issue-8460-const.rs:39:36
136 LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
137 | ^^^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
139 error: attempt to calculate the remainder with overflow
140 --> $DIR/issue-8460-const.rs:42:36
142 LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
145 error: this expression will panic at runtime
146 --> $DIR/issue-8460-const.rs:42:36
148 LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
149 | ^^^^^^^^^^^^ attempt to calculate the remainder with overflow
151 error: attempt to calculate the remainder with overflow
152 --> $DIR/issue-8460-const.rs:45:36
154 LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
157 error: this expression will panic at runtime
158 --> $DIR/issue-8460-const.rs:45:36
160 LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
161 | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
163 error: attempt to calculate the remainder with overflow
164 --> $DIR/issue-8460-const.rs:48:36
166 LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
169 error: this expression will panic at runtime
170 --> $DIR/issue-8460-const.rs:48:36
172 LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
173 | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
175 error: attempt to calculate the remainder with overflow
176 --> $DIR/issue-8460-const.rs:51:36
178 LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
181 error: this expression will panic at runtime
182 --> $DIR/issue-8460-const.rs:51:36
184 LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
185 | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
187 error: attempt to calculate the remainder with a divisor of zero
188 --> $DIR/issue-8460-const.rs:54:36
190 LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
193 error: this expression will panic at runtime
194 --> $DIR/issue-8460-const.rs:54:36
196 LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
197 | ^^^^^^^^^^ attempt to calculate the remainder with a divisor of zero
199 error: attempt to calculate the remainder with a divisor of zero
200 --> $DIR/issue-8460-const.rs:57:36
202 LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
205 error: this expression will panic at runtime
206 --> $DIR/issue-8460-const.rs:57:36
208 LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
209 | ^^^^^^^ attempt to calculate the remainder with a divisor of zero
211 error: attempt to calculate the remainder with a divisor of zero
212 --> $DIR/issue-8460-const.rs:60:36
214 LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
217 error: this expression will panic at runtime
218 --> $DIR/issue-8460-const.rs:60:36
220 LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
221 | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero
223 error: attempt to calculate the remainder with a divisor of zero
224 --> $DIR/issue-8460-const.rs:63:36
226 LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
229 error: this expression will panic at runtime
230 --> $DIR/issue-8460-const.rs:63:36
232 LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
233 | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero
235 error: attempt to calculate the remainder with a divisor of zero
236 --> $DIR/issue-8460-const.rs:66:36
238 LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
241 error: this expression will panic at runtime
242 --> $DIR/issue-8460-const.rs:66:36
244 LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
245 | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero
247 error: aborting due to 40 previous errors