11error: any use of this value will cause an error
2- --> $DIR/const-err-early.rs:3:1
2+ --> $DIR/const-err-early.rs:3:19
33 |
44LL | pub const A: i8 = -std::i8::MIN;
5- | ^^^^^^^^^^^^^^^^^^ -------------^
5+ | ------------------^^^^^^^^^^^^^-
66 | |
77 | attempt to negate with overflow
88 |
@@ -13,34 +13,34 @@ LL | #![deny(const_err)]
1313 | ^^^^^^^^^
1414
1515error: any use of this value will cause an error
16- --> $DIR/const-err-early.rs:4:1
16+ --> $DIR/const-err-early.rs:4:19
1717 |
1818LL | pub const B: u8 = 200u8 + 200u8;
19- | ^^^^^^^^^^^^^^^^^^ -------------^
19+ | ------------------^^^^^^^^^^^^^-
2020 | |
2121 | attempt to add with overflow
2222
2323error: any use of this value will cause an error
24- --> $DIR/const-err-early.rs:5:1
24+ --> $DIR/const-err-early.rs:5:19
2525 |
2626LL | pub const C: u8 = 200u8 * 4;
27- | ^^^^^^^^^^^^^^^^^^ ---------^
27+ | ------------------^^^^^^^^^-
2828 | |
2929 | attempt to multiply with overflow
3030
3131error: any use of this value will cause an error
32- --> $DIR/const-err-early.rs:6:1
32+ --> $DIR/const-err-early.rs:6:19
3333 |
3434LL | pub const D: u8 = 42u8 - (42u8 + 1);
35- | ^^^^^^^^^^^^^^^^^^ -----------------^
35+ | ------------------^^^^^^^^^^^^^^^^^-
3636 | |
3737 | attempt to subtract with overflow
3838
3939error: any use of this value will cause an error
40- --> $DIR/const-err-early.rs:7:1
40+ --> $DIR/const-err-early.rs:7:19
4141 |
4242LL | pub const E: u8 = [5u8][1];
43- | ^^^^^^^^^^^^^^^^^^ --------^
43+ | ------------------^^^^^^^^-
4444 | |
4545 | index out of bounds: the len is 1 but the index is 1
4646
0 commit comments