2018-09-19 10:22:03 -05:00
|
|
|
warning: due to multiple output types requested, the explicitly specified output file name will be adapted for each output type
|
|
|
|
|
|
|
|
error: any use of this value will cause an error
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/unused-broken-const.rs:5:1
|
2018-09-19 10:22:03 -05:00
|
|
|
|
|
|
|
|
LL | const FOO: i32 = [][0];
|
|
|
|
| ^^^^^^^^^^^^^^^^^-----^
|
|
|
|
| |
|
|
|
|
| index out of bounds: the len is 0 but the index is 0
|
|
|
|
|
|
|
|
|
= note: #[deny(const_err)] on by default
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|