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

fn foo<const N: usize>() {
    let _ = [0u64; N + 1];
    //~^ ERROR constant expression depends on a generic parameter
}

fn main() {}