rust/tests/ui/consts/const-slice-oob.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
315 B
Plaintext
Raw Normal View History

2022-09-21 11:05:20 +00:00
error[E0080]: evaluation of constant value failed
--> $DIR/const-slice-oob.rs:2:18
2018-08-08 12:28:26 +00:00
|
LL | const BAR: u32 = FOO[5];
2022-09-21 11:05:20 +00:00
| ^^^^^^ index out of bounds: the length is 3 but the index is 5
2018-08-08 12:28:26 +00:00
error: aborting due to 1 previous error
2018-08-08 12:28:26 +00:00
2022-09-21 11:05:20 +00:00
For more information about this error, try `rustc --explain E0080`.