rust/tests/ui/const-generics/infer/cannot-infer-const-args.rs

8 lines
104 B
Rust

fn foo<const X: usize>() -> usize {
0
}
fn main() {
foo(); //~ ERROR type annotations needed
}