fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: any use of this value will cause an error 2 --> $DIR/const-err-early.rs:3:19 3 | 4LL | pub const A: i8 = -std::i8::MIN; 5 | ------------------^^^^^^^^^^^^^- 6 | | 7 | attempt to negate with overflow 8 | 9note: the lint level is defined here 10 --> $DIR/const-err-early.rs:1:9 11 | 12LL | #![deny(const_err)] 13 | ^^^^^^^^^ 14 15error: any use of this value will cause an error 16 --> $DIR/const-err-early.rs:4:19 17 | 18LL | pub const B: u8 = 200u8 + 200u8; 19 | ------------------^^^^^^^^^^^^^- 20 | | 21 | attempt to add with overflow 22 23error: any use of this value will cause an error 24 --> $DIR/const-err-early.rs:5:19 25 | 26LL | pub const C: u8 = 200u8 * 4; 27 | ------------------^^^^^^^^^- 28 | | 29 | attempt to multiply with overflow 30 31error: any use of this value will cause an error 32 --> $DIR/const-err-early.rs:6:19 33 | 34LL | pub const D: u8 = 42u8 - (42u8 + 1); 35 | ------------------^^^^^^^^^^^^^^^^^- 36 | | 37 | attempt to subtract with overflow 38 39error: any use of this value will cause an error 40 --> $DIR/const-err-early.rs:7:19 41 | 42LL | pub const E: u8 = [5u8][1]; 43 | ------------------^^^^^^^^- 44 | | 45 | index out of bounds: the len is 1 but the index is 1 46 47error: aborting due to 5 previous errors 48