fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error: attempt to divide with overflow 2 --> $DIR/issue-8460-const2.rs:10: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:4:9 9 | 10LL | #![deny(const_err)] 11 | ^^^^^^^^^ 12 13error: attempt to divide with overflow 14 --> $DIR/issue-8460-const2.rs:12: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:14: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:16: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:18: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:20:36 39 | 40LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err()); 41 | ^^^^^^^^^^ 42 43error: attempt to divide by zero 44 --> $DIR/issue-8460-const2.rs:22:36 45 | 46LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err()); 47 | ^^^^^^^ 48 49error: attempt to divide by zero 50 --> $DIR/issue-8460-const2.rs:24:36 51 | 52LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err()); 53 | ^^^^^^^^ 54 55error: attempt to divide by zero 56 --> $DIR/issue-8460-const2.rs:26:36 57 | 58LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err()); 59 | ^^^^^^^^ 60 61error: attempt to divide by zero 62 --> $DIR/issue-8460-const2.rs:28:36 63 | 64LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err()); 65 | ^^^^^^^^ 66 67error: attempt to calculate the remainder with overflow 68 --> $DIR/issue-8460-const2.rs:30:36 69 | 70LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err()); 71 | ^^^^^^^^^^^^^^^ 72 73error: attempt to calculate the remainder with overflow 74 --> $DIR/issue-8460-const2.rs:32:36 75 | 76LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err()); 77 | ^^^^^^^^^^^^ 78 79error: attempt to calculate the remainder with overflow 80 --> $DIR/issue-8460-const2.rs:34:36 81 | 82LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err()); 83 | ^^^^^^^^^^^^^ 84 85error: attempt to calculate the remainder with overflow 86 --> $DIR/issue-8460-const2.rs:36:36 87 | 88LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err()); 89 | ^^^^^^^^^^^^^ 90 91error: attempt to calculate the remainder with overflow 92 --> $DIR/issue-8460-const2.rs:38:36 93 | 94LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err()); 95 | ^^^^^^^^^^^^^ 96 97error: attempt to calculate the remainder with a divisor of zero 98 --> $DIR/issue-8460-const2.rs:40:36 99 | 100LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err()); 101 | ^^^^^^^^^^ 102 103error: attempt to calculate the remainder with a divisor of zero 104 --> $DIR/issue-8460-const2.rs:42:36 105 | 106LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err()); 107 | ^^^^^^^ 108 109error: attempt to calculate the remainder with a divisor of zero 110 --> $DIR/issue-8460-const2.rs:44:36 111 | 112LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err()); 113 | ^^^^^^^^ 114 115error: attempt to calculate the remainder with a divisor of zero 116 --> $DIR/issue-8460-const2.rs:46:36 117 | 118LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err()); 119 | ^^^^^^^^ 120 121error: attempt to calculate the remainder with a divisor of zero 122 --> $DIR/issue-8460-const2.rs:48:36 123 | 124LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err()); 125 | ^^^^^^^^ 126 127error: aborting due to 20 previous errors 128