fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
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: this expression will panic at runtime 44 --> $DIR/issue-8460-const2.rs:19:36 45 | 46LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); 47 | ^^^^^^^^^^ attempt to divide by zero 48 49error: attempt to divide by zero 50 --> $DIR/issue-8460-const2.rs:22:36 51 | 52LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); 53 | ^^^^^^^ 54 55error: this expression will panic at runtime 56 --> $DIR/issue-8460-const2.rs:22:36 57 | 58LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); 59 | ^^^^^^^ attempt to divide by zero 60 61error: attempt to divide by zero 62 --> $DIR/issue-8460-const2.rs:25:36 63 | 64LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); 65 | ^^^^^^^^ 66 67error: this expression will panic at runtime 68 --> $DIR/issue-8460-const2.rs:25:36 69 | 70LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); 71 | ^^^^^^^^ attempt to divide by zero 72 73error: attempt to divide by zero 74 --> $DIR/issue-8460-const2.rs:28:36 75 | 76LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); 77 | ^^^^^^^^ 78 79error: this expression will panic at runtime 80 --> $DIR/issue-8460-const2.rs:28:36 81 | 82LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); 83 | ^^^^^^^^ attempt to divide by zero 84 85error: attempt to divide by zero 86 --> $DIR/issue-8460-const2.rs:31:36 87 | 88LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); 89 | ^^^^^^^^ 90 91error: this expression will panic at runtime 92 --> $DIR/issue-8460-const2.rs:31:36 93 | 94LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); 95 | ^^^^^^^^ attempt to divide by zero 96 97error: attempt to calculate the remainder with overflow 98 --> $DIR/issue-8460-const2.rs:34:36 99 | 100LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); 101 | ^^^^^^^^^^^^^^^ 102 103error: attempt to calculate the remainder with overflow 104 --> $DIR/issue-8460-const2.rs:36:36 105 | 106LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); 107 | ^^^^^^^^^^^^ 108 109error: attempt to calculate the remainder with overflow 110 --> $DIR/issue-8460-const2.rs:38:36 111 | 112LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); 113 | ^^^^^^^^^^^^^ 114 115error: attempt to calculate the remainder with overflow 116 --> $DIR/issue-8460-const2.rs:40:36 117 | 118LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); 119 | ^^^^^^^^^^^^^ 120 121error: attempt to calculate the remainder with overflow 122 --> $DIR/issue-8460-const2.rs:42:36 123 | 124LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); 125 | ^^^^^^^^^^^^^ 126 127error: attempt to calculate the remainder with a divisor of zero 128 --> $DIR/issue-8460-const2.rs:44:36 129 | 130LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); 131 | ^^^^^^^^^^ 132 133error: this expression will panic at runtime 134 --> $DIR/issue-8460-const2.rs:44:36 135 | 136LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); 137 | ^^^^^^^^^^ attempt to calculate the remainder with a divisor of zero 138 139error: attempt to calculate the remainder with a divisor of zero 140 --> $DIR/issue-8460-const2.rs:47:36 141 | 142LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); 143 | ^^^^^^^ 144 145error: this expression will panic at runtime 146 --> $DIR/issue-8460-const2.rs:47:36 147 | 148LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); 149 | ^^^^^^^ attempt to calculate the remainder with a divisor of zero 150 151error: attempt to calculate the remainder with a divisor of zero 152 --> $DIR/issue-8460-const2.rs:50:36 153 | 154LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); 155 | ^^^^^^^^ 156 157error: this expression will panic at runtime 158 --> $DIR/issue-8460-const2.rs:50:36 159 | 160LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); 161 | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero 162 163error: attempt to calculate the remainder with a divisor of zero 164 --> $DIR/issue-8460-const2.rs:53:36 165 | 166LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); 167 | ^^^^^^^^ 168 169error: this expression will panic at runtime 170 --> $DIR/issue-8460-const2.rs:53:36 171 | 172LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); 173 | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero 174 175error: attempt to calculate the remainder with a divisor of zero 176 --> $DIR/issue-8460-const2.rs:56:36 177 | 178LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); 179 | ^^^^^^^^ 180 181error: this expression will panic at runtime 182 --> $DIR/issue-8460-const2.rs:56:36 183 | 184LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); 185 | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero 186 187error: aborting due to 30 previous errors 188