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