| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const2.rs:9:36 |
| | |
| LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^^^ |
| | |
| note: lint level defined here |
| --> $DIR/issue-8460-const2.rs:3:9 |
| | |
| LL | #![deny(const_err)] |
| | ^^^^^^^^^ |
| |
| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const2.rs:11:36 |
| | |
| LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^ |
| |
| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const2.rs:13:36 |
| | |
| LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const2.rs:15:36 |
| | |
| LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const2.rs:17:36 |
| | |
| LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const2.rs:19:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); |
| | ^^^^^^^^^^ |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const2.rs:21:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); |
| | ^^^^^^^ |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const2.rs:23:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const2.rs:25:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const2.rs:27:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const2.rs:29:36 |
| | |
| LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^^^ |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const2.rs:31:36 |
| | |
| LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^ |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const2.rs:33:36 |
| | |
| LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const2.rs:35:36 |
| | |
| LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const2.rs:37:36 |
| | |
| LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const2.rs:39:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); |
| | ^^^^^^^^^^ |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const2.rs:41:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); |
| | ^^^^^^^ |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const2.rs:43:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const2.rs:45:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const2.rs:47:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: aborting due to 20 previous errors |
| |