mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +00:00
12 lines
229 B
Rust
12 lines
229 B
Rust
//@ build-fail
|
|
|
|
#![feature(generic_const_items)]
|
|
#![allow(incomplete_features)]
|
|
#![recursion_limit = "15"]
|
|
|
|
const RECUR<T>: () = RECUR::<(T,)>;
|
|
|
|
fn main() {
|
|
let _ = RECUR::<()>; //~ ERROR: queries overflow the depth limit!
|
|
}
|