summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues/issue-66205.rs
blob: 14249b62ceed835e6cd768f62cfbfad9259d8bf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
#![allow(dead_code, unconditional_recursion)]

fn fact<const N: usize>() {
    fact::<{ N - 1 }>();
    //[full]~^ ERROR constant expression depends on a generic parameter
    //[min]~^^ ERROR generic parameters may not be used in const operations
}

fn main() {}