]>
Commit | Line | Data |
---|---|---|
74b04a01 | 1 | error: this arithmetic operation will overflow |
fc512014 | 2 | --> $DIR/issue-8460-const.rs:13:36 |
74b04a01 XL |
3 | | |
4 | LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err()); | |
1b1a35ee | 5 | | ^^^^^^^^^^^^^^^ attempt to compute `isize::MIN / -1_isize`, which would overflow |
74b04a01 XL |
6 | | |
7 | = note: `#[deny(arithmetic_overflow)]` on by default | |
8 | ||
9 | error: this arithmetic operation will overflow | |
fc512014 | 10 | --> $DIR/issue-8460-const.rs:15:36 |
74b04a01 XL |
11 | | |
12 | LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err()); | |
1b1a35ee | 13 | | ^^^^^^^^^^^^ attempt to compute `i8::MIN / -1_i8`, which would overflow |
74b04a01 XL |
14 | |
15 | error: this arithmetic operation will overflow | |
fc512014 | 16 | --> $DIR/issue-8460-const.rs:17:36 |
74b04a01 XL |
17 | | |
18 | LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err()); | |
1b1a35ee | 19 | | ^^^^^^^^^^^^^ attempt to compute `i16::MIN / -1_i16`, which would overflow |
74b04a01 XL |
20 | |
21 | error: this arithmetic operation will overflow | |
fc512014 | 22 | --> $DIR/issue-8460-const.rs:19:36 |
74b04a01 XL |
23 | | |
24 | LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err()); | |
1b1a35ee | 25 | | ^^^^^^^^^^^^^ attempt to compute `i32::MIN / -1_i32`, which would overflow |
74b04a01 XL |
26 | |
27 | error: this arithmetic operation will overflow | |
fc512014 | 28 | --> $DIR/issue-8460-const.rs:21:36 |
74b04a01 XL |
29 | | |
30 | LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err()); | |
1b1a35ee | 31 | | ^^^^^^^^^^^^^ attempt to compute `i64::MIN / -1_i64`, which would overflow |
74b04a01 XL |
32 | |
33 | error: this arithmetic operation will overflow | |
fc512014 | 34 | --> $DIR/issue-8460-const.rs:23:36 |
74b04a01 XL |
35 | | |
36 | LL | assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err()); | |
1b1a35ee | 37 | | ^^^^^^^^^^^^^^ attempt to compute `i128::MIN / -1_i128`, which would overflow |
74b04a01 XL |
38 | |
39 | error: this operation will panic at runtime | |
fc512014 | 40 | --> $DIR/issue-8460-const.rs:25:36 |
74b04a01 XL |
41 | | |
42 | LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); | |
1b1a35ee | 43 | | ^^^^^^^^^^ attempt to divide `1_isize` by zero |
74b04a01 XL |
44 | | |
45 | = note: `#[deny(unconditional_panic)]` on by default | |
46 | ||
47 | error: this operation will panic at runtime | |
fc512014 | 48 | --> $DIR/issue-8460-const.rs:27:36 |
74b04a01 XL |
49 | | |
50 | LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); | |
1b1a35ee | 51 | | ^^^^^^^ attempt to divide `1_i8` by zero |
74b04a01 XL |
52 | |
53 | error: this operation will panic at runtime | |
fc512014 | 54 | --> $DIR/issue-8460-const.rs:29:36 |
74b04a01 XL |
55 | | |
56 | LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); | |
1b1a35ee | 57 | | ^^^^^^^^ attempt to divide `1_i16` by zero |
74b04a01 XL |
58 | |
59 | error: this operation will panic at runtime | |
fc512014 | 60 | --> $DIR/issue-8460-const.rs:31:36 |
74b04a01 XL |
61 | | |
62 | LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); | |
1b1a35ee | 63 | | ^^^^^^^^ attempt to divide `1_i32` by zero |
74b04a01 XL |
64 | |
65 | error: this operation will panic at runtime | |
fc512014 | 66 | --> $DIR/issue-8460-const.rs:33:36 |
74b04a01 XL |
67 | | |
68 | LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); | |
1b1a35ee | 69 | | ^^^^^^^^ attempt to divide `1_i64` by zero |
74b04a01 XL |
70 | |
71 | error: this operation will panic at runtime | |
fc512014 | 72 | --> $DIR/issue-8460-const.rs:35:36 |
74b04a01 XL |
73 | | |
74 | LL | assert!(thread::spawn(move|| { 1i128 / 0; }).join().is_err()); | |
1b1a35ee | 75 | | ^^^^^^^^^ attempt to divide `1_i128` by zero |
74b04a01 XL |
76 | |
77 | error: this arithmetic operation will overflow | |
fc512014 | 78 | --> $DIR/issue-8460-const.rs:37:36 |
74b04a01 XL |
79 | | |
80 | LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); | |
1b1a35ee | 81 | | ^^^^^^^^^^^^^^^ attempt to compute the remainder of `isize::MIN % -1_isize`, which would overflow |
74b04a01 XL |
82 | |
83 | error: this arithmetic operation will overflow | |
fc512014 | 84 | --> $DIR/issue-8460-const.rs:39:36 |
74b04a01 XL |
85 | | |
86 | LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); | |
1b1a35ee | 87 | | ^^^^^^^^^^^^ attempt to compute the remainder of `i8::MIN % -1_i8`, which would overflow |
74b04a01 XL |
88 | |
89 | error: this arithmetic operation will overflow | |
fc512014 | 90 | --> $DIR/issue-8460-const.rs:41:36 |
74b04a01 XL |
91 | | |
92 | LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); | |
1b1a35ee | 93 | | ^^^^^^^^^^^^^ attempt to compute the remainder of `i16::MIN % -1_i16`, which would overflow |
74b04a01 XL |
94 | |
95 | error: this arithmetic operation will overflow | |
fc512014 | 96 | --> $DIR/issue-8460-const.rs:43:36 |
74b04a01 XL |
97 | | |
98 | LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); | |
1b1a35ee | 99 | | ^^^^^^^^^^^^^ attempt to compute the remainder of `i32::MIN % -1_i32`, which would overflow |
74b04a01 XL |
100 | |
101 | error: this arithmetic operation will overflow | |
fc512014 | 102 | --> $DIR/issue-8460-const.rs:45:36 |
74b04a01 XL |
103 | | |
104 | LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); | |
1b1a35ee | 105 | | ^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow |
74b04a01 XL |
106 | |
107 | error: this arithmetic operation will overflow | |
fc512014 | 108 | --> $DIR/issue-8460-const.rs:47:36 |
74b04a01 XL |
109 | | |
110 | LL | assert!(thread::spawn(move|| { i128::MIN % -1; }).join().is_err()); | |
1b1a35ee | 111 | | ^^^^^^^^^^^^^^ attempt to compute the remainder of `i128::MIN % -1_i128`, which would overflow |
74b04a01 XL |
112 | |
113 | error: this operation will panic at runtime | |
fc512014 | 114 | --> $DIR/issue-8460-const.rs:49:36 |
74b04a01 XL |
115 | | |
116 | LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); | |
1b1a35ee | 117 | | ^^^^^^^^^^ attempt to calculate the remainder of `1_isize` with a divisor of zero |
74b04a01 XL |
118 | |
119 | error: this operation will panic at runtime | |
fc512014 | 120 | --> $DIR/issue-8460-const.rs:51:36 |
74b04a01 XL |
121 | | |
122 | LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); | |
1b1a35ee | 123 | | ^^^^^^^ attempt to calculate the remainder of `1_i8` with a divisor of zero |
74b04a01 XL |
124 | |
125 | error: this operation will panic at runtime | |
fc512014 | 126 | --> $DIR/issue-8460-const.rs:53:36 |
74b04a01 XL |
127 | | |
128 | LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); | |
1b1a35ee | 129 | | ^^^^^^^^ attempt to calculate the remainder of `1_i16` with a divisor of zero |
74b04a01 XL |
130 | |
131 | error: this operation will panic at runtime | |
fc512014 | 132 | --> $DIR/issue-8460-const.rs:55:36 |
74b04a01 XL |
133 | | |
134 | LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); | |
1b1a35ee | 135 | | ^^^^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero |
74b04a01 XL |
136 | |
137 | error: this operation will panic at runtime | |
fc512014 | 138 | --> $DIR/issue-8460-const.rs:57:36 |
74b04a01 XL |
139 | | |
140 | LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); | |
1b1a35ee | 141 | | ^^^^^^^^ attempt to calculate the remainder of `1_i64` with a divisor of zero |
74b04a01 XL |
142 | |
143 | error: this operation will panic at runtime | |
fc512014 | 144 | --> $DIR/issue-8460-const.rs:59:36 |
74b04a01 XL |
145 | | |
146 | LL | assert!(thread::spawn(move|| { 1i128 % 0; }).join().is_err()); | |
1b1a35ee | 147 | | ^^^^^^^^^ attempt to calculate the remainder of `1_i128` with a divisor of zero |
74b04a01 XL |
148 | |
149 | error: aborting due to 24 previous errors | |
150 |