1 error: attempt to divide with overflow
2 --> $DIR/issue-8460-const2.rs:10:36
4 LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
7 note: lint level defined here
8 --> $DIR/issue-8460-const2.rs:4:9
10 LL | #![deny(const_err)]
13 error: attempt to divide with overflow
14 --> $DIR/issue-8460-const2.rs:12:36
16 LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
19 error: attempt to divide with overflow
20 --> $DIR/issue-8460-const2.rs:14:36
22 LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
25 error: attempt to divide with overflow
26 --> $DIR/issue-8460-const2.rs:16:36
28 LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
31 error: attempt to divide with overflow
32 --> $DIR/issue-8460-const2.rs:18:36
34 LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
37 error: attempt to divide by zero
38 --> $DIR/issue-8460-const2.rs:20:36
40 LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
43 error: attempt to divide by zero
44 --> $DIR/issue-8460-const2.rs:22:36
46 LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
49 error: attempt to divide by zero
50 --> $DIR/issue-8460-const2.rs:24:36
52 LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
55 error: attempt to divide by zero
56 --> $DIR/issue-8460-const2.rs:26:36
58 LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
61 error: attempt to divide by zero
62 --> $DIR/issue-8460-const2.rs:28:36
64 LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
67 error: attempt to calculate the remainder with overflow
68 --> $DIR/issue-8460-const2.rs:30:36
70 LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
73 error: attempt to calculate the remainder with overflow
74 --> $DIR/issue-8460-const2.rs:32:36
76 LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
79 error: attempt to calculate the remainder with overflow
80 --> $DIR/issue-8460-const2.rs:34:36
82 LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
85 error: attempt to calculate the remainder with overflow
86 --> $DIR/issue-8460-const2.rs:36:36
88 LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
91 error: attempt to calculate the remainder with overflow
92 --> $DIR/issue-8460-const2.rs:38:36
94 LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
97 error: attempt to calculate the remainder with a divisor of zero
98 --> $DIR/issue-8460-const2.rs:40:36
100 LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
103 error: attempt to calculate the remainder with a divisor of zero
104 --> $DIR/issue-8460-const2.rs:42:36
106 LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
109 error: attempt to calculate the remainder with a divisor of zero
110 --> $DIR/issue-8460-const2.rs:44:36
112 LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
115 error: attempt to calculate the remainder with a divisor of zero
116 --> $DIR/issue-8460-const2.rs:46:36
118 LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
121 error: attempt to calculate the remainder with a divisor of zero
122 --> $DIR/issue-8460-const2.rs:48:36
124 LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
127 error: aborting due to 20 previous errors