@@ -44,42 +44,5 @@ LL | pub const E: u8 = [5u8][1]; //~ ERROR const_err
4444 | |
4545 | index out of bounds: the len is 1 but the index is 1
4646
47- error[E0080]: erroneous constant used
48- --> $DIR/const-err-early.rs:20:14
49- |
50- LL | let _a = A; //~ ERROR erroneous constant used
51- | ^ referenced constant has errors
52-
53- error[E0080]: erroneous constant used
54- --> $DIR/const-err-early.rs:21:14
55- |
56- LL | let _b = B; //~ ERROR erroneous constant used
57- | ^ referenced constant has errors
58-
59- error[E0080]: erroneous constant used
60- --> $DIR/const-err-early.rs:22:14
61- |
62- LL | let _c = C; //~ ERROR erroneous constant used
63- | ^ referenced constant has errors
64-
65- error[E0080]: erroneous constant used
66- --> $DIR/const-err-early.rs:23:14
67- |
68- LL | let _d = D; //~ ERROR erroneous constant used
69- | ^ referenced constant has errors
70-
71- error[E0080]: erroneous constant used
72- --> $DIR/const-err-early.rs:24:14
73- |
74- LL | let _e = E; //~ ERROR erroneous constant used
75- | ^ referenced constant has errors
76-
77- error: index out of bounds: the len is 1 but the index is 1
78- --> $DIR/const-err-early.rs:25:14
79- |
80- LL | let _e = [6u8][1]; //~ ERROR index out of bounds
81- | ^^^^^^^^
82-
83- error: aborting due to 11 previous errors
47+ error: aborting due to 5 previous errors
8448
85- For more information about this error, try `rustc --explain E0080`.
0 commit comments