fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
4.4 KiB128 linesraw
1error: attempt to divide with overflow
2  --> $DIR/issue-8460-const2.rs:9:36
3   |
4LL |     assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
5   |                                    ^^^^^^^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/issue-8460-const2.rs:3:9
9   |
10LL | #![deny(const_err)]
11   |         ^^^^^^^^^
12
13error: attempt to divide with overflow
14  --> $DIR/issue-8460-const2.rs:11:36
15   |
16LL |     assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
17   |                                    ^^^^^^^^^^^^
18
19error: attempt to divide with overflow
20  --> $DIR/issue-8460-const2.rs:13:36
21   |
22LL |     assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
23   |                                    ^^^^^^^^^^^^^
24
25error: attempt to divide with overflow
26  --> $DIR/issue-8460-const2.rs:15:36
27   |
28LL |     assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
29   |                                    ^^^^^^^^^^^^^
30
31error: attempt to divide with overflow
32  --> $DIR/issue-8460-const2.rs:17:36
33   |
34LL |     assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
35   |                                    ^^^^^^^^^^^^^
36
37error: attempt to divide by zero
38  --> $DIR/issue-8460-const2.rs:19:36
39   |
40LL |     assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
41   |                                    ^^^^^^^^^^
42
43error: attempt to divide by zero
44  --> $DIR/issue-8460-const2.rs:21:36
45   |
46LL |     assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
47   |                                    ^^^^^^^
48
49error: attempt to divide by zero
50  --> $DIR/issue-8460-const2.rs:23:36
51   |
52LL |     assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
53   |                                    ^^^^^^^^
54
55error: attempt to divide by zero
56  --> $DIR/issue-8460-const2.rs:25:36
57   |
58LL |     assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
59   |                                    ^^^^^^^^
60
61error: attempt to divide by zero
62  --> $DIR/issue-8460-const2.rs:27:36
63   |
64LL |     assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
65   |                                    ^^^^^^^^
66
67error: attempt to calculate the remainder with overflow
68  --> $DIR/issue-8460-const2.rs:29:36
69   |
70LL |     assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
71   |                                    ^^^^^^^^^^^^^^^
72
73error: attempt to calculate the remainder with overflow
74  --> $DIR/issue-8460-const2.rs:31:36
75   |
76LL |     assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
77   |                                    ^^^^^^^^^^^^
78
79error: attempt to calculate the remainder with overflow
80  --> $DIR/issue-8460-const2.rs:33:36
81   |
82LL |     assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
83   |                                    ^^^^^^^^^^^^^
84
85error: attempt to calculate the remainder with overflow
86  --> $DIR/issue-8460-const2.rs:35:36
87   |
88LL |     assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
89   |                                    ^^^^^^^^^^^^^
90
91error: attempt to calculate the remainder with overflow
92  --> $DIR/issue-8460-const2.rs:37:36
93   |
94LL |     assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
95   |                                    ^^^^^^^^^^^^^
96
97error: attempt to calculate the remainder with a divisor of zero
98  --> $DIR/issue-8460-const2.rs:39:36
99   |
100LL |     assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
101   |                                    ^^^^^^^^^^
102
103error: attempt to calculate the remainder with a divisor of zero
104  --> $DIR/issue-8460-const2.rs:41:36
105   |
106LL |     assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
107   |                                    ^^^^^^^
108
109error: attempt to calculate the remainder with a divisor of zero
110  --> $DIR/issue-8460-const2.rs:43:36
111   |
112LL |     assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
113   |                                    ^^^^^^^^
114
115error: attempt to calculate the remainder with a divisor of zero
116  --> $DIR/issue-8460-const2.rs:45:36
117   |
118LL |     assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
119   |                                    ^^^^^^^^
120
121error: attempt to calculate the remainder with a divisor of zero
122  --> $DIR/issue-8460-const2.rs:47:36
123   |
124LL |     assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
125   |                                    ^^^^^^^^
126
127error: aborting due to 20 previous errors
128