fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1warning: this expression will panic at runtime 2 --> $DIR/promoted_errors.rs:9:14 3 | 4LL | let _x = 0u32 - 1; 5 | ^^^^^^^^ attempt to subtract with overflow 6 | 7note: lint level defined here 8 --> $DIR/promoted_errors.rs:5:9 9 | 10LL | #![warn(const_err)] 11 | ^^^^^^^^^ 12 13warning: attempt to divide by zero 14 --> $DIR/promoted_errors.rs:11:20 15 | 16LL | println!("{}", 1 / (1 - 1)); 17 | ^^^^^^^^^^^ 18 19warning: reaching this expression at runtime will panic or abort 20 --> $DIR/promoted_errors.rs:11:20 21 | 22LL | println!("{}", 1 / (1 - 1)); 23 | ^^^^^^^^^^^ dividing by zero 24 25warning: erroneous constant used 26 --> $DIR/promoted_errors.rs:11:20 27 | 28LL | println!("{}", 1 / (1 - 1)); 29 | ^^^^^^^^^^^ referenced constant has errors 30 31warning: attempt to divide by zero 32 --> $DIR/promoted_errors.rs:15:14 33 | 34LL | let _x = 1 / (1 - 1); 35 | ^^^^^^^^^^^ 36 37warning: attempt to divide by zero 38 --> $DIR/promoted_errors.rs:17:20 39 | 40LL | println!("{}", 1 / (false as u32)); 41 | ^^^^^^^^^^^^^^^^^^ 42 43warning: reaching this expression at runtime will panic or abort 44 --> $DIR/promoted_errors.rs:17:20 45 | 46LL | println!("{}", 1 / (false as u32)); 47 | ^^^^^^^^^^^^^^^^^^ dividing by zero 48 49warning: erroneous constant used 50 --> $DIR/promoted_errors.rs:17:20 51 | 52LL | println!("{}", 1 / (false as u32)); 53 | ^^^^^^^^^^^^^^^^^^ referenced constant has errors 54 55warning: attempt to divide by zero 56 --> $DIR/promoted_errors.rs:21:14 57 | 58LL | let _x = 1 / (false as u32); 59 | ^^^^^^^^^^^^^^^^^^ 60