]> git.lizzy.rs Git - rust.git/blob - src/test/ui/array_const_index-0.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / array_const_index-0.stderr
1 error: any use of this value will cause an error
2   --> $DIR/array_const_index-0.rs:2:16
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: aborting due to previous error
12