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