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

fn foo<const X: usize>() -> usize {
    0
}

fn main() {
    foo(); //~ ERROR type annotations needed
}