| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const.rs:9:36 |
| | |
| LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^^^ |
| | |
| note: lint level defined here |
| --> $DIR/issue-8460-const.rs:3:9 |
| | |
| LL | #![deny(const_err)] |
| | ^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:9:36 |
| | |
| LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^^^ attempt to divide with overflow |
| |
| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const.rs:12:36 |
| | |
| LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:12:36 |
| | |
| LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^ attempt to divide with overflow |
| |
| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const.rs:15:36 |
| | |
| LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:15:36 |
| | |
| LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ attempt to divide with overflow |
| |
| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const.rs:18:36 |
| | |
| LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:18:36 |
| | |
| LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ attempt to divide with overflow |
| |
| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const.rs:21:36 |
| | |
| LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:21:36 |
| | |
| LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ attempt to divide with overflow |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const.rs:24:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); |
| | ^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:24:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); |
| | ^^^^^^^^^^ attempt to divide by zero |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const.rs:27:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); |
| | ^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:27:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); |
| | ^^^^^^^ attempt to divide by zero |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const.rs:30:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:30:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); |
| | ^^^^^^^^ attempt to divide by zero |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const.rs:33:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:33:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); |
| | ^^^^^^^^ attempt to divide by zero |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const.rs:36:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:36:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); |
| | ^^^^^^^^ attempt to divide by zero |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const.rs:39:36 |
| | |
| LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:39:36 |
| | |
| LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const.rs:42:36 |
| | |
| LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:42:36 |
| | |
| LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const.rs:45:36 |
| | |
| LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:45:36 |
| | |
| LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const.rs:48:36 |
| | |
| LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:48:36 |
| | |
| LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const.rs:51:36 |
| | |
| LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:51:36 |
| | |
| LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const.rs:54:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); |
| | ^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:54:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); |
| | ^^^^^^^^^^ attempt to calculate the remainder with a divisor of zero |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const.rs:57:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); |
| | ^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:57:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); |
| | ^^^^^^^ attempt to calculate the remainder with a divisor of zero |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const.rs:60:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:60:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); |
| | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const.rs:63:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:63:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); |
| | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero |
| |
| error: attempt to calculate the remainder with a divisor of zero |
| --> $DIR/issue-8460-const.rs:66:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:66:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); |
| | ^^^^^^^^ attempt to calculate the remainder with a divisor of zero |
| |
| error: aborting due to 40 previous errors |
| |