mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-27 18:56:24 +00:00
8 lines
141 B
Rust
8 lines
141 B
Rust
const fn foo<T>() {
|
|
const { foo::<&T>() } //~ ERROR: queries overflow the depth limit!
|
|
}
|
|
|
|
fn main () {
|
|
const X: () = foo::<i32>();
|
|
}
|