1 warning: this arithmetic operation will overflow
2 --> $DIR/promoted_errors.rs:15:5
5 | ^^^^^ attempt to compute `0_u32 - 1_u32`, which would overflow
7 note: the lint level is defined here
8 --> $DIR/promoted_errors.rs:11:9
10 LL | #![warn(arithmetic_overflow, unconditional_panic)]
13 warning: this operation will panic at runtime
14 --> $DIR/promoted_errors.rs:19:5
17 | ^^^^^ attempt to divide `1_i32` by zero
19 note: the lint level is defined here
20 --> $DIR/promoted_errors.rs:11:30
22 LL | #![warn(arithmetic_overflow, unconditional_panic)]
25 warning: this operation will panic at runtime
26 --> $DIR/promoted_errors.rs:23:5
29 | ^^^^^^^^^^^ attempt to divide `1_i32` by zero
31 warning: this operation will panic at runtime
32 --> $DIR/promoted_errors.rs:27:5
34 LL | 1 / (false as i32)
35 | ^^^^^^^^^^^^^^^^^^ attempt to divide `1_i32` by zero
37 warning: this operation will panic at runtime
38 --> $DIR/promoted_errors.rs:31:5
41 | ^^^^^^^^^^^^ index out of bounds: the length is 3 but the index is 4
43 warning: 5 warnings emitted