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