about summary refs log tree commit diff
path: root/tests/ui/generic-const-items/recursive.rs
blob: 94cf98ec64b2586d7ea5e873a2a995a4dc331aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ 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!
}