2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:11:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { isize::MIN / -1; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ attempt to compute `isize::MIN / -1_isize`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
= note: `#[deny(unconditional_panic)]` on by default
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:13:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i8::MIN / -1; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^^^^ attempt to compute `i8::MIN / -1_i8`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:15:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i16::MIN / -1; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^^^^^ attempt to compute `i16::MIN / -1_i16`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:17:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i32::MIN / -1; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^^^^^ attempt to compute `i32::MIN / -1_i32`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:19:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^^^^^ attempt to compute `i64::MIN / -1_i64`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:21:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^ attempt to compute `i128::MIN / -1_i128`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:23:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^^ attempt to divide `1_isize` by zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:25:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^ attempt to divide `1_i8` by zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:27:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^ attempt to divide `1_i16` by zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:29:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^ attempt to divide `1_i32` by zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:31:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^ attempt to divide `1_i64` by zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:33:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i128 / 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^ attempt to divide `1_i128` by zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:35:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
|
2023-05-17 05:30:14 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ attempt to compute `isize::MIN % -1_isize`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:37:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
|
2023-05-17 05:30:14 -05:00
|
|
|
| ^^^^^^^^^^^^ attempt to compute `i8::MIN % -1_i8`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:39:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
|
2023-05-17 05:30:14 -05:00
|
|
|
| ^^^^^^^^^^^^^ attempt to compute `i16::MIN % -1_i16`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:41:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
|
2023-05-17 05:30:14 -05:00
|
|
|
| ^^^^^^^^^^^^^ attempt to compute `i32::MIN % -1_i32`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:43:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
|
2023-05-17 05:30:14 -05:00
|
|
|
| ^^^^^^^^^^^^^ attempt to compute `i64::MIN % -1_i64`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
2022-03-01 19:02:59 -06:00
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:45:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { i128::MIN % -1; }).join().is_err());
|
2023-05-17 05:30:14 -05:00
|
|
|
| ^^^^^^^^^^^^^^ attempt to compute `i128::MIN % -1_i128`, which would overflow
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:47:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^^ attempt to calculate the remainder of `1_isize` with a divisor of zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:49:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^ attempt to calculate the remainder of `1_i8` with a divisor of zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:51:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^ attempt to calculate the remainder of `1_i16` with a divisor of zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:53:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:55:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^ attempt to calculate the remainder of `1_i64` with a divisor of zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: this operation will panic at runtime
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/issue-8460-const.rs:57:36
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
|
LL | assert!(thread::spawn(move|| { 1i128 % 0; }).join().is_err());
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^^^ attempt to calculate the remainder of `1_i128` with a divisor of zero
|
2020-02-15 03:47:27 -06:00
|
|
|
|
|
|
|
error: aborting due to 24 previous errors
|
|
|
|
|