fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error: attempt to negate with overflow 2 --> $DIR/const-err3.rs:16:13 3 | 4LL | let a = -std::i8::MIN; 5 | ^^^^^^^^^^^^^ 6 | 7note: lint level defined here 8 --> $DIR/const-err3.rs:9:9 9 | 10LL | #![deny(const_err)] 11 | ^^^^^^^^^ 12 13error: attempt to add with overflow 14 --> $DIR/const-err3.rs:18:13 15 | 16LL | let b = 200u8 + 200u8 + 200u8; 17 | ^^^^^^^^^^^^^ 18 19error: attempt to multiply with overflow 20 --> $DIR/const-err3.rs:20:13 21 | 22LL | let c = 200u8 * 4; 23 | ^^^^^^^^^ 24 25error: attempt to subtract with overflow 26 --> $DIR/const-err3.rs:22:13 27 | 28LL | let d = 42u8 - (42u8 + 1); 29 | ^^^^^^^^^^^^^^^^^ 30 31error: index out of bounds: the len is 1 but the index is 1 32 --> $DIR/const-err3.rs:24:14 33 | 34LL | let _e = [5u8][1]; 35 | ^^^^^^^^ 36 37error: aborting due to 5 previous errors 38