2018-01-16 03:15:41 -06:00
|
|
|
//https://github.com/rust-lang/rust/issues/31364
|
|
|
|
|
2020-09-07 10:30:38 -05:00
|
|
|
const fn a() -> usize {
|
2020-12-02 06:15:11 -06:00
|
|
|
b() //~ ERROR evaluation of constant value failed [E0080]
|
2020-09-07 10:30:38 -05:00
|
|
|
}
|
|
|
|
const fn b() -> usize {
|
|
|
|
a()
|
|
|
|
}
|
2018-08-26 08:19:34 -05:00
|
|
|
const ARR: [i32; a()] = [5; 6];
|
2018-01-16 03:15:41 -06:00
|
|
|
|
2020-09-07 10:30:38 -05:00
|
|
|
fn main() {}
|