rust/tests/ui/consts/recursive-block.rs

8 lines
141 B
Rust
Raw Normal View History

2025-01-06 16:54:59 +00:00
const fn foo<T>() {
const { foo::<&T>() } //~ ERROR: queries overflow the depth limit!
}
fn main () {
const X: () = foo::<i32>();
}