1 warning: this expression will panic at runtime
2 --> $DIR/promoted_errors.rs:17:14
4 LL | let _x = 0u32 - 1;
5 | ^^^^^^^^ attempt to subtract with overflow
7 note: lint level defined here
8 --> $DIR/promoted_errors.rs:11:9
10 LL | #![warn(const_err)]
13 warning: attempt to divide by zero
14 --> $DIR/promoted_errors.rs:19:20
16 LL | println!("{}", 1/(1-1));
19 warning: this expression will panic at runtime
20 --> $DIR/promoted_errors.rs:19:20
22 LL | println!("{}", 1/(1-1));
23 | ^^^^^^^ attempt to divide by zero
25 warning: attempt to divide by zero
26 --> $DIR/promoted_errors.rs:22:14
28 LL | let _x = 1/(1-1);
31 warning: this expression will panic at runtime
32 --> $DIR/promoted_errors.rs:22:14
34 LL | let _x = 1/(1-1);
35 | ^^^^^^^ attempt to divide by zero
37 warning: this expression will panic at runtime
38 --> $DIR/promoted_errors.rs:25:20
40 LL | println!("{}", 1/(false as u32));
41 | ^^^^^^^^^^^^^^^^ attempt to divide by zero