]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/issue-8460-const.noopt.stderr
Auto merge of #101893 - oli-obk:lift_derive, r=lcnr
[rust.git] / src / test / ui / numbers-arithmetic / issue-8460-const.noopt.stderr
1 error: this operation will panic at runtime
2   --> $DIR/issue-8460-const.rs:13:36
3    |
4 LL |     assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
5    |                                    ^^^^^^^^^^^^^^^ attempt to compute `isize::MIN / -1_isize`, which would overflow
6    |
7    = note: `#[deny(unconditional_panic)]` on by default
8
9 error: this operation will panic at runtime
10   --> $DIR/issue-8460-const.rs:15:36
11    |
12 LL |     assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
13    |                                    ^^^^^^^^^^^^ attempt to compute `i8::MIN / -1_i8`, which would overflow
14
15 error: this operation will panic at runtime
16   --> $DIR/issue-8460-const.rs:17:36
17    |
18 LL |     assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
19    |                                    ^^^^^^^^^^^^^ attempt to compute `i16::MIN / -1_i16`, which would overflow
20
21 error: this operation will panic at runtime
22   --> $DIR/issue-8460-const.rs:19:36
23    |
24 LL |     assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
25    |                                    ^^^^^^^^^^^^^ attempt to compute `i32::MIN / -1_i32`, which would overflow
26
27 error: this operation will panic at runtime
28   --> $DIR/issue-8460-const.rs:21:36
29    |
30 LL |     assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
31    |                                    ^^^^^^^^^^^^^ attempt to compute `i64::MIN / -1_i64`, which would overflow
32
33 error: this operation will panic at runtime
34   --> $DIR/issue-8460-const.rs:23:36
35    |
36 LL |     assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err());
37    |                                    ^^^^^^^^^^^^^^ attempt to compute `i128::MIN / -1_i128`, which would overflow
38
39 error: this operation will panic at runtime
40   --> $DIR/issue-8460-const.rs:25:36
41    |
42 LL |     assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
43    |                                    ^^^^^^^^^^ attempt to divide `1_isize` by zero
44
45 error: this operation will panic at runtime
46   --> $DIR/issue-8460-const.rs:27:36
47    |
48 LL |     assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
49    |                                    ^^^^^^^ attempt to divide `1_i8` by zero
50
51 error: this operation will panic at runtime
52   --> $DIR/issue-8460-const.rs:29:36
53    |
54 LL |     assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
55    |                                    ^^^^^^^^ attempt to divide `1_i16` by zero
56
57 error: this operation will panic at runtime
58   --> $DIR/issue-8460-const.rs:31:36
59    |
60 LL |     assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
61    |                                    ^^^^^^^^ attempt to divide `1_i32` by zero
62
63 error: this operation will panic at runtime
64   --> $DIR/issue-8460-const.rs:33:36
65    |
66 LL |     assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
67    |                                    ^^^^^^^^ attempt to divide `1_i64` by zero
68
69 error: this operation will panic at runtime
70   --> $DIR/issue-8460-const.rs:35:36
71    |
72 LL |     assert!(thread::spawn(move|| { 1i128 / 0; }).join().is_err());
73    |                                    ^^^^^^^^^ attempt to divide `1_i128` by zero
74
75 error: this operation will panic at runtime
76   --> $DIR/issue-8460-const.rs:37:36
77    |
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
80
81 error: this operation will panic at runtime
82   --> $DIR/issue-8460-const.rs:39:36
83    |
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
86
87 error: this operation will panic at runtime
88   --> $DIR/issue-8460-const.rs:41:36
89    |
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
92
93 error: this operation will panic at runtime
94   --> $DIR/issue-8460-const.rs:43:36
95    |
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
98
99 error: this operation will panic at runtime
100   --> $DIR/issue-8460-const.rs:45:36
101    |
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
104
105 error: this operation will panic at runtime
106   --> $DIR/issue-8460-const.rs:47:36
107    |
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
110
111 error: this operation will panic at runtime
112   --> $DIR/issue-8460-const.rs:49:36
113    |
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
116
117 error: this operation will panic at runtime
118   --> $DIR/issue-8460-const.rs:51:36
119    |
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
122
123 error: this operation will panic at runtime
124   --> $DIR/issue-8460-const.rs:53:36
125    |
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
128
129 error: this operation will panic at runtime
130   --> $DIR/issue-8460-const.rs:55:36
131    |
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
134
135 error: this operation will panic at runtime
136   --> $DIR/issue-8460-const.rs:57:36
137    |
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
140
141 error: this operation will panic at runtime
142   --> $DIR/issue-8460-const.rs:59:36
143    |
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
146
147 error: aborting due to 24 previous errors
148