2025-01-06 09:04:22 +01:00
|
|
|
//@ build-fail
|
2023-07-10 03:10:03 +02:00
|
|
|
|
|
|
|
#![feature(generic_const_items)]
|
|
|
|
#![allow(incomplete_features)]
|
2025-01-06 09:04:22 +01:00
|
|
|
#![recursion_limit = "15"]
|
2023-07-10 03:10:03 +02:00
|
|
|
|
|
|
|
const RECUR<T>: () = RECUR::<(T,)>;
|
|
|
|
|
|
|
|
fn main() {
|
2025-01-06 09:04:22 +01:00
|
|
|
let _ = RECUR::<()>; //~ ERROR: queries overflow the depth limit!
|
2023-07-10 03:10:03 +02:00
|
|
|
}
|