1 error: this operation will panic at runtime
2 --> $DIR/issue-8460-const.rs:11:36
4 LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
5 | ^^^^^^^^^^^^^^^ attempt to compute `isize::MIN / -1_isize`, which would overflow
7 = note: `#[deny(unconditional_panic)]` on by default
9 error: this operation will panic at runtime
10 --> $DIR/issue-8460-const.rs:13:36
12 LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
13 | ^^^^^^^^^^^^ attempt to compute `i8::MIN / -1_i8`, which would overflow
15 error: this operation will panic at runtime
16 --> $DIR/issue-8460-const.rs:15:36
18 LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
19 | ^^^^^^^^^^^^^ attempt to compute `i16::MIN / -1_i16`, which would overflow
21 error: this operation will panic at runtime
22 --> $DIR/issue-8460-const.rs:17:36
24 LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
25 | ^^^^^^^^^^^^^ attempt to compute `i32::MIN / -1_i32`, which would overflow
27 error: this operation will panic at runtime
28 --> $DIR/issue-8460-const.rs:19:36
30 LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
31 | ^^^^^^^^^^^^^ attempt to compute `i64::MIN / -1_i64`, which would overflow
33 error: this operation will panic at runtime
34 --> $DIR/issue-8460-const.rs:21:36
36 LL | assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err());
37 | ^^^^^^^^^^^^^^ attempt to compute `i128::MIN / -1_i128`, which would overflow
39 error: this operation will panic at runtime
40 --> $DIR/issue-8460-const.rs:23:36
42 LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
43 | ^^^^^^^^^^ attempt to divide `1_isize` by zero
45 error: this operation will panic at runtime
46 --> $DIR/issue-8460-const.rs:25:36
48 LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
49 | ^^^^^^^ attempt to divide `1_i8` by zero
51 error: this operation will panic at runtime
52 --> $DIR/issue-8460-const.rs:27:36
54 LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
55 | ^^^^^^^^ attempt to divide `1_i16` by zero
57 error: this operation will panic at runtime
58 --> $DIR/issue-8460-const.rs:29:36
60 LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
61 | ^^^^^^^^ attempt to divide `1_i32` by zero
63 error: this operation will panic at runtime
64 --> $DIR/issue-8460-const.rs:31:36
66 LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
67 | ^^^^^^^^ attempt to divide `1_i64` by zero
69 error: this operation will panic at runtime
70 --> $DIR/issue-8460-const.rs:33:36
72 LL | assert!(thread::spawn(move|| { 1i128 / 0; }).join().is_err());
73 | ^^^^^^^^^ attempt to divide `1_i128` by zero
75 error: this operation will panic at runtime
76 --> $DIR/issue-8460-const.rs:35:36
78 LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
79 | ^^^^^^^^^^^^^^^ attempt to compute the remainder of `isize::MIN % -1_isize`, which would overflow
81 error: this operation will panic at runtime
82 --> $DIR/issue-8460-const.rs:37:36
84 LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
85 | ^^^^^^^^^^^^ attempt to compute the remainder of `i8::MIN % -1_i8`, which would overflow
87 error: this operation will panic at runtime
88 --> $DIR/issue-8460-const.rs:39:36
90 LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
91 | ^^^^^^^^^^^^^ attempt to compute the remainder of `i16::MIN % -1_i16`, which would overflow
93 error: this operation will panic at runtime
94 --> $DIR/issue-8460-const.rs:41:36
96 LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
97 | ^^^^^^^^^^^^^ attempt to compute the remainder of `i32::MIN % -1_i32`, which would overflow
99 error: this operation will panic at runtime
100 --> $DIR/issue-8460-const.rs:43:36
102 LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
103 | ^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow
105 error: this operation will panic at runtime
106 --> $DIR/issue-8460-const.rs:45:36
108 LL | assert!(thread::spawn(move|| { i128::MIN % -1; }).join().is_err());
109 | ^^^^^^^^^^^^^^ attempt to compute the remainder of `i128::MIN % -1_i128`, which would overflow
111 error: this operation will panic at runtime
112 --> $DIR/issue-8460-const.rs:47:36
114 LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
115 | ^^^^^^^^^^ attempt to calculate the remainder of `1_isize` with a divisor of zero
117 error: this operation will panic at runtime
118 --> $DIR/issue-8460-const.rs:49:36
120 LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
121 | ^^^^^^^ attempt to calculate the remainder of `1_i8` with a divisor of zero
123 error: this operation will panic at runtime
124 --> $DIR/issue-8460-const.rs:51:36
126 LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
127 | ^^^^^^^^ attempt to calculate the remainder of `1_i16` with a divisor of zero
129 error: this operation will panic at runtime
130 --> $DIR/issue-8460-const.rs:53:36
132 LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
133 | ^^^^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero
135 error: this operation will panic at runtime
136 --> $DIR/issue-8460-const.rs:55:36
138 LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
139 | ^^^^^^^^ attempt to calculate the remainder of `1_i64` with a divisor of zero
141 error: this operation will panic at runtime
142 --> $DIR/issue-8460-const.rs:57:36
144 LL | assert!(thread::spawn(move|| { 1i128 % 0; }).join().is_err());
145 | ^^^^^^^^^ attempt to calculate the remainder of `1_i128` with a divisor of zero
147 error: aborting due to 24 previous errors