summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-slice-oob.stderr
blob: 746883a79a65b5d43ecbdf45f4dba05a084afb98 (plain)
1
2
3
4
5
6
7
8
9
error[E0080]: evaluation of constant value failed
  --> $DIR/const-slice-oob.rs:2:18
   |
LL | const BAR: u32 = FOO[5];
   |                  ^^^^^^ index out of bounds: the length is 3 but the index is 5

error: aborting due to previous error

For more information about this error, try `rustc --explain E0080`.