]> git.lizzy.rs Git - rust.git/blob - src/test/ui/array_const_index-1.stderr
Deduplicate all the ~~things~~ errors
[rust.git] / src / test / ui / array_const_index-1.stderr
1 error: any use of this value will cause an error
2   --> $DIR/array_const_index-1.rs:12:1
3    |
4 LL | const B: i32 = A[1];
5    | ^^^^^^^^^^^^^^^----^
6    |                |
7    |                index out of bounds: the len is 0 but the index is 1
8    |
9    = note: #[deny(const_err)] on by default
10
11 error[E0080]: erroneous constant used
12   --> $DIR/array_const_index-1.rs:17:13
13    |
14 LL |     let _ = B; //~ ERROR erroneous constant used
15    |             ^ referenced constant has errors
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0080`.