]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-array-oob.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / consts / const-array-oob.stderr
CommitLineData
b7449926
XL
1error: index out of bounds: the len is 3 but the index is 4
2 --> $DIR/const-array-oob.rs:18:19
3 |
4LL | const BLUB: [u32; FOO[4]] = [5, 6];
5 | ^^^^^^
6 |
7 = note: #[deny(const_err)] on by default
8
9error[E0080]: could not evaluate constant expression
0bf4aa26 10 --> $DIR/const-array-oob.rs:18:13
b7449926
XL
11 |
12LL | 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
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0080`.