fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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