summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues/issue-66205.rs
blob: 7cedf51ca040493f1e00193f42658724e2d203fd (plain)
1
2
3
4
5
6
7
8
9
10
#![allow(dead_code, unconditional_recursion)]
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete

fn fact<const N: usize>() {
    fact::<{ N - 1 }>();
    //~^ ERROR constant expression depends on a generic parameter
}

fn main() {}