| error: attempt to divide with overflow |
| --> $DIR/issue-8460-const.rs:10:36 |
| | |
| LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^^^ |
| | |
| note: lint level defined here |
| --> $DIR/issue-8460-const.rs:4:9 |
| | |
| LL | #![deny(const_err)] |
| | ^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:10: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:13:36 |
| | |
| LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:13: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:16:36 |
| | |
| LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:16: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:19:36 |
| | |
| LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:19: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:22:36 |
| | |
| LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:22: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:25:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); |
| | ^^^^^^^^^^ |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const.rs:27:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); |
| | ^^^^^^^ |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const.rs:29:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const.rs:31:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: attempt to divide by zero |
| --> $DIR/issue-8460-const.rs:33:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: attempt to calculate the remainder with overflow |
| --> $DIR/issue-8460-const.rs:35:36 |
| | |
| LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:35: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:38:36 |
| | |
| LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:38: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:41:36 |
| | |
| LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:41: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:44:36 |
| | |
| LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:44: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:47:36 |
| | |
| LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); |
| | ^^^^^^^^^^^^^ |
| |
| error: this expression will panic at runtime |
| --> $DIR/issue-8460-const.rs:47: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:50: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-const.rs:52: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-const.rs:54: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-const.rs:56: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-const.rs:58:36 |
| | |
| LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); |
| | ^^^^^^^^ |
| |
| error: aborting due to 30 previous errors |
| |