@@ -13,81 +13,73 @@ LL | #![deny(const_err)]
1313 | ^^^^^^^^^
1414
1515error: any use of this value will cause an error
16- --> $DIR/const-err-early.rs:15 :1
16+ --> $DIR/const-err-early.rs:14 :1
1717 |
1818LL | pub const B: u8 = 200u8 + 200u8; //~ ERROR const_err
1919 | ^^^^^^^^^^^^^^^^^^-------------^
2020 | |
2121 | attempt to add with overflow
2222
2323error: any use of this value will cause an error
24- --> $DIR/const-err-early.rs:16 :1
24+ --> $DIR/const-err-early.rs:15 :1
2525 |
2626LL | pub const C: u8 = 200u8 * 4; //~ ERROR const_err
2727 | ^^^^^^^^^^^^^^^^^^---------^
2828 | |
2929 | attempt to multiply with overflow
3030
3131error: any use of this value will cause an error
32- --> $DIR/const-err-early.rs:17 :1
32+ --> $DIR/const-err-early.rs:16 :1
3333 |
3434LL | pub const D: u8 = 42u8 - (42u8 + 1); //~ ERROR const_err
3535 | ^^^^^^^^^^^^^^^^^^-----------------^
3636 | |
3737 | attempt to subtract with overflow
3838
3939error: any use of this value will cause an error
40- --> $DIR/const-err-early.rs:18 :1
40+ --> $DIR/const-err-early.rs:17 :1
4141 |
4242LL | pub const E: u8 = [5u8][1]; //~ ERROR const_err
4343 | ^^^^^^^^^^^^^^^^^^--------^
4444 | |
4545 | index out of bounds: the len is 1 but the index is 1
4646
47- error: any use of this value will cause an error
48- --> $DIR/const-err-early.rs:13:1
49- |
50- LL | pub const A: i8 = -std::i8::MIN; //~ ERROR const_err
51- | ^^^^^^^^^^^^^^^^^^-------------^
52- | |
53- | attempt to negate with overflow
54-
5547error[E0080]: erroneous constant used
56- --> $DIR/const-err-early.rs:21 :14
48+ --> $DIR/const-err-early.rs:20 :14
5749 |
5850LL | let _a = A; //~ ERROR erroneous constant used
5951 | ^ referenced constant has errors
6052
6153error[E0080]: erroneous constant used
62- --> $DIR/const-err-early.rs:22 :14
54+ --> $DIR/const-err-early.rs:21 :14
6355 |
6456LL | let _b = B; //~ ERROR erroneous constant used
6557 | ^ referenced constant has errors
6658
6759error[E0080]: erroneous constant used
68- --> $DIR/const-err-early.rs:23 :14
60+ --> $DIR/const-err-early.rs:22 :14
6961 |
7062LL | let _c = C; //~ ERROR erroneous constant used
7163 | ^ referenced constant has errors
7264
7365error[E0080]: erroneous constant used
74- --> $DIR/const-err-early.rs:24 :14
66+ --> $DIR/const-err-early.rs:23 :14
7567 |
7668LL | let _d = D; //~ ERROR erroneous constant used
7769 | ^ referenced constant has errors
7870
7971error[E0080]: erroneous constant used
80- --> $DIR/const-err-early.rs:25 :14
72+ --> $DIR/const-err-early.rs:24 :14
8173 |
8274LL | let _e = E; //~ ERROR erroneous constant used
8375 | ^ referenced constant has errors
8476
8577error: index out of bounds: the len is 1 but the index is 1
86- --> $DIR/const-err-early.rs:26 :14
78+ --> $DIR/const-err-early.rs:25 :14
8779 |
8880LL | let _e = [6u8][1]; //~ ERROR index out of bounds
8981 | ^^^^^^^^
9082
91- error: aborting due to 12 previous errors
83+ error: aborting due to 11 previous errors
9284
9385For more information about this error, try `rustc --explain E0080`.
0 commit comments