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