summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/infer/cannot-infer-const-args.rs
blob: f85a72910aff151b769aafbc5eb42d5dfaec2955 (plain)
1
2
3
4
5
6
7
fn foo<const X: usize>() -> usize {
    0
}

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