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

8 lines
104 B
Rust
Raw Normal View History

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