]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | error: index out of bounds: the len is 3 but the index is 4 |
2 | --> $DIR/const-array-oob.rs:18:19 | |
3 | | | |
4 | LL | const BLUB: [u32; FOO[4]] = [5, 6]; | |
5 | | ^^^^^^ | |
6 | | | |
7 | = note: #[deny(const_err)] on by default | |
8 | ||
9 | error[E0080]: could not evaluate constant expression | |
0bf4aa26 | 10 | --> $DIR/const-array-oob.rs:18:13 |
b7449926 XL |
11 | | |
12 | LL | const BLUB: [u32; FOO[4]] = [5, 6]; | |
0bf4aa26 | 13 | | ^^^^^^------^ |
b7449926 XL |
14 | | | |
15 | | index out of bounds: the len is 3 but the index is 4 | |
16 | ||
17 | error: aborting due to 2 previous errors | |
18 | ||
19 | For more information about this error, try `rustc --explain E0080`. |