mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
12 lines
218 B
Rust
12 lines
218 B
Rust
//https://github.com/rust-lang/rust/issues/31364
|
|
|
|
const fn a() -> usize {
|
|
b() //~ ERROR evaluation of constant value failed [E0080]
|
|
}
|
|
const fn b() -> usize {
|
|
a()
|
|
}
|
|
const ARR: [i32; a()] = [5; 6];
|
|
|
|
fn main() {}
|